pasori

package module
v0.0.0-...-ca188cf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2019 License: MIT Imports: 3 Imported by: 0

README

pasori

This library allows you to get the IDm from pasori which is Felica card reader.

install

go get github.com/bamchoh/pasori

usage

To get the IDm, Vender ID and Product ID are needed. Before using, you need to get VID and PID from your Felica card reader.

For pasori, Vender ID is 0x054C, Product ID is 0x06C3.

package main

import (
	"fmt"
	"github.com/bamchoh/pasori"
)

var (
	VID uint16 = 0x054C // SONY
	PID uint16 = 0x06C3 // RC-S380
)

func main() {
	idm, err := pasori.GetID(VID, PID)
	if err != nil {
		panic(err)
	}
	fmt.Println(idm)
}

license

MIT license

references

To implement this library, I referenced below article deeply. @ysomei, Thank you for your allowing me to refer your article.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetID

func GetID(vid, pid uint16) ([]byte, error)

Types

This section is empty.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL