Documentation
¶
Index ¶
- Constants
- Variables
- type M6E
- func (m *M6E) Close() error
- func (m *M6E) DisableDebugging()
- func (m *M6E) DisableReadFilter() error
- func (m *M6E) EnableDebugging()
- func (m *M6E) EnableReadFilter() error
- func (m *M6E) GetReadPower() (float32, error)
- func (m *M6E) GetVersion() error
- func (m *M6E) GetWritePower() (float32, error)
- func (m *M6E) ReadMessage() (*ResponseMessage, error)
- func (m *M6E) SetAntennaPort() error
- func (m *M6E) SetBaud(baudRate int) error
- func (m *M6E) SetReadPower(powerSetting float32) error
- func (m *M6E) SetRegion(reg Region) error
- func (m *M6E) SetTagProtocol(protocol TagProtocol) error
- func (m *M6E) SetWritePower(powerSetting float32) error
- func (m *M6E) StartReading() error
- func (m *M6E) StopReading() error
- type PowerMode
- type Region
- type ResponseMessage
- type Tag
- type TagProtocol
- type UserMode
Constants ¶
View Source
const ( ResponseTemperature = iota ResponseKeepAlive ResponseTempThrottle ResponseTagFound ResponseNoTagFound ResponseUnknown )
Variables ¶
View Source
var ErrCmdResponseTimeout = errors.New("Command reponse timeout")
View Source
var ErrCorruptResponse = errors.New("Corrupt response")
View Source
var ErrUnknownOpcode = errors.New("Unknown opcode")
View Source
var ErrWrongOpcodeResponse = errors.New("Wrong opcode response")
Functions ¶
This section is empty.
Types ¶
type M6E ¶
type M6E struct {
// contains filtered or unexported fields
}
M6E device handle
func (*M6E) DisableDebugging ¶
func (m *M6E) DisableDebugging()
func (*M6E) DisableReadFilter ¶
func (*M6E) EnableDebugging ¶
func (m *M6E) EnableDebugging()
func (*M6E) EnableReadFilter ¶
func (*M6E) GetReadPower ¶
func (*M6E) GetVersion ¶
func (*M6E) GetWritePower ¶
func (*M6E) ReadMessage ¶
func (m *M6E) ReadMessage() (*ResponseMessage, error)
func (*M6E) SetAntennaPort ¶
func (*M6E) SetReadPower ¶
SetReadPower sets the read-power, enter a value between 1 and 27 (value in dBm)
func (*M6E) SetTagProtocol ¶
func (m *M6E) SetTagProtocol(protocol TagProtocol) error
func (*M6E) SetWritePower ¶
SetWritePower sets the write-power, enter a value between 1 and 27 (value in dBm)
func (*M6E) StartReading ¶
StartReading disables filtering and start reading continuously
func (*M6E) StopReading ¶
StopReading stops continuous read. Give 1000 to 2000ms for the module to stop reading.
type ResponseMessage ¶
type Tag ¶
type TagProtocol ¶
type TagProtocol byte
const ( TagProtocolNone TagProtocol = 0x00 TagProtocolISO180006B TagProtocol = 0x03 TagProtocolGEN2 TagProtocol = 0x05 TagProtocolISO180006BUCODE TagProtocol = 0x06 TagProtocolIPX64 TagProtocol = 0x07 TagProtocolIPX256 TagProtocol = 0x08 TagProtocolATA TagProtocol = 0x1D )
Click to show internal directories.
Click to hide internal directories.