|
upm
0.3.2
Sensor/Actuator repository for libmraa (v0.7.2)
|
API for the SM130 RFID Reader Module. More...
This file defines the SM130 interface for the 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 | ||
| ) |
Instantiates an SM130 object
| di | Data pin |
| dcki | Clock pin |
| const char * getFirmwareVersion | ( | ) |
Gets 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 the results of a command.


|
inline |
Returns the packet length, excluding the checksum

|
inline |
Returns the last executed command

|
inline |
Returns the name of the component
1.8.9.1