|
M5Unit-NFC 0.1.0 git rev:93745b5
|
Utility API. More...
Namespaces | |
| namespace | m5 |
| Top level namespace of M5Stack. | |
Macros | |
| #define | TRANSACTION_GUARD() transaction_guard _tg_(adapter()) |
Functions | |
| uint16_t | m5::unit::st25r3916::calculate_nrt (const uint32_t ms, const bool nrt_step) |
| Calculate NRT register value. | |
| uint8_t | m5::unit::st25r3916::calculate_mrt (const uint32_t us, const bool mrt_step) |
| Calculate MRT register value. | |
| uint8_t | m5::unit::st25r3916::calculate_fdt (const uint32_t us) |
| Calculate FDT register value. | |
Utility API.
|
inline |
Calculate FDT register value.
| us | Target frame delay time in microseconds |
| uint8_t m5::unit::st25r3916::calculate_mrt | ( | const uint32_t | us, |
| const bool | mrt_step ) |
Calculate MRT register value.
| us | Target time in microseconds |
| mrt_step | MRT step selector (false:64/fc, true:512/fc) |
| uint16_t m5::unit::st25r3916::calculate_nrt | ( | const uint32_t | ms, |
| const bool | nrt_step ) |
Calculate NRT register value.
| ms | Target time in milliseconds |
| nrt_step | NRT step selector (false:64/fc, true:4096/fc) |