Common interface layer for each chip of the NFC-F emulation.
More...
#include <emulation_layer_f.hpp>
|
| enum class | State { None
, Off
, Communicated
, Selected
} |
| | Emulation state for NFC-F.
|
| |
|
|
| EmulationLayerF (m5::unit::UnitST25R3916 &u) |
| | Construct with UnitST25R3916 (I2C)
|
| |
|
| EmulationLayerF (m5::unit::CapST25R3916 &u) |
| | Construct with CapST25R3916 (SPI)
|
| |
|
State | state () const |
| | Gets the current emulation state.
|
| |
|
const m5::nfc::f::PICC & | emulatePICC () const |
| | Gets the emulated PICC information.
|
| |
|
uint32_t | expiredTime () const |
| | Gets the expiration time (ms)
|
| |
|
void | setExpiredTime (const uint32_t ms) |
| | Sets the expiration time (ms)
|
| |
|
bool | begin (const m5::nfc::f::PICC &picc, uint8_t *ptr, const uint32_t size) |
| | Begin NFC-F emulation.
|
| |
|
bool | end () |
| | End NFC-F emulation.
|
| |
|
void | update () |
| | Update emulation state machine.
|
| |
|
virtual State | receive_callback (const State s, const uint8_t *rx, const uint32_t rx_len) |
| |
|
|
uint8_t * | _memory {} |
| |
|
uint32_t | _memory_size {} |
| |
Common interface layer for each chip of the NFC-F emulation.
- Note
- The chip emulates one technology at a time, so this cannot run alongside EmulationLayerA. The unit must be configured for NFC-F emulation before begin().