sl500_api

package module
v0.0.0-...-006b55f Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2019 License: GPL-3.0 Imports: 6 Imported by: 0

README

sl500-api

Documentation

Index

Constants

View Source
const (
	Type_A       = byte(0xA)
	Type_B       = byte(0xB)
	Type_ISO     = byte(0x1)
	AntennaOn    = byte(0x1)
	AntennaOff   = byte(0x0)
	ColorOff     = byte(0x0)
	ColorRed     = byte(0x1)
	ColorGreen   = byte(0x2)
	ColorYellow  = byte(0x3)
	RequestStd   = byte(0x26)
	RequestAll   = byte(0x52)
	AuthModeKeyA = byte(0x60)
	AuthModeKeyB = byte(0x61)
)

Variables

View Source
var Baud = baudRegistry()

Functions

This section is empty.

Types

type Sl500

type Sl500 struct {
	// contains filtered or unexported fields
}

func NewConnection

func NewConnection(path string, baud baud, logging bool) (Sl500, error)

func (*Sl500) Close

func (s *Sl500) Close() error

func (*Sl500) Open

func (s *Sl500) Open() error

func (*Sl500) RfAntennaSta

func (s *Sl500) RfAntennaSta(antennaState byte) ([]byte, error)

func (*Sl500) RfAnticoll

func (s *Sl500) RfAnticoll() ([]byte, error)

func (*Sl500) RfBeep

func (s *Sl500) RfBeep(durationMs byte) ([]byte, error)

func (*Sl500) RfGetDeviceNumber

func (s *Sl500) RfGetDeviceNumber() ([]byte, error)

func (*Sl500) RfGetModel

func (s *Sl500) RfGetModel() ([]byte, error)

func (*Sl500) RfHalt

func (s *Sl500) RfHalt() ([]byte, error)

func (*Sl500) RfInitCom

func (s *Sl500) RfInitCom(baud byte) ([]byte, error)

func (*Sl500) RfInitDeviceNumber

func (s *Sl500) RfInitDeviceNumber(deviceId []byte) ([]byte, error)

func (*Sl500) RfInitType

func (s *Sl500) RfInitType(workType byte) ([]byte, error)

func (*Sl500) RfLight

func (s *Sl500) RfLight(color byte) ([]byte, error)

func (*Sl500) RfM1Authentication2

func (s *Sl500) RfM1Authentication2(authMode byte, blockNumber byte, key []byte) ([]byte, error)

func (*Sl500) RfM1Decrement

func (s *Sl500) RfM1Decrement(blockNumber byte, decrementValue []byte) ([]byte, error)

func (*Sl500) RfM1Increment

func (s *Sl500) RfM1Increment(blockNumber byte, incrementValue []byte) ([]byte, error)

func (*Sl500) RfM1Initval

func (s *Sl500) RfM1Initval(blockNumber byte, initialValue []byte) ([]byte, error)

func (*Sl500) RfM1Read

func (s *Sl500) RfM1Read(blockNumber byte) ([]byte, error)

func (*Sl500) RfM1Readval

func (s *Sl500) RfM1Readval(blockNumber byte) ([]byte, error)

func (*Sl500) RfM1Restore

func (s *Sl500) RfM1Restore(blockNumber byte) ([]byte, error)

func (*Sl500) RfM1Transfer

func (s *Sl500) RfM1Transfer(blockNumber byte) ([]byte, error)

func (*Sl500) RfM1Write

func (s *Sl500) RfM1Write(blockNumber byte, data []byte) ([]byte, error)

func (*Sl500) RfRequest

func (s *Sl500) RfRequest(requestType byte) ([]byte, error)

func (*Sl500) RfSelect

func (s *Sl500) RfSelect(serialNumber []byte) ([]byte, error)

Jump to

Keyboard shortcuts

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