upm
0.3.1
Sensor/Actuator repository for libmraa (v0.7.2)
|
API for SM130 RFID reader module. More...
This file defines the interface for sm130 RFID library
SM130 RFID Reader image provided by SparkFun under CC BY-NC-SA-3.0.
Public Member Functions | |
SM130 (int bus, int devAddr, int rst, int dready) | |
~SM130 () | |
const char * | getFirmwareVersion () |
uint8_t | available () |
uint8_t | getPacketLength () |
uint8_t | getCommand () |
std::string | name () |
SM130 | ( | int | bus, |
int | devAddr, | ||
int | rst, | ||
int | dready | ||
) |
Instanciates a SM130 object
di | data pin |
dcki | clock pin |
const char * getFirmwareVersion | ( | ) |
Get the firmware version string.
uint8_t available | ( | ) |
Checks for availability of a valid response packet.
This function should always be called and return true prior to using results of a command.
|
inline |
Returns the packet length, excluding checksum
|
inline |
Returns the last executed command
|
inline |
Return name of the component