Driver for HARDWARIO NFC Module.
More...
|
bool | twr_tag_nfc_init (twr_tag_nfc_t *self, twr_i2c_channel_t i2c_channel, uint8_t i2c_address) |
| Initialize NFC Tag. More...
|
|
bool | twr_tag_nfc_memory_read (twr_tag_nfc_t *self, void *buffer, size_t length) |
| Read from memory. More...
|
|
bool | twr_tag_nfc_memory_write (twr_tag_nfc_t *self, void *buffer, size_t length) |
| Write to memory. More...
|
|
bool | twr_tag_nfc_memory_write_ndef (twr_tag_nfc_t *self, twr_tag_nfc_ndef_t *ndef) |
| Write to memory. More...
|
|
void | twr_tag_nfc_ndef_init (twr_tag_nfc_ndef_t *self) |
| Initialize NDEF. More...
|
|
bool | twr_tag_nfc_ndef_add_text (twr_tag_nfc_ndef_t *self, const char *text, const char *encoding) |
| Add ndef text record. More...
|
|
bool | twr_tag_nfc_ndef_add_uri (twr_tag_nfc_ndef_t *self, const char *uri) |
| Add ndef uri record. More...
|
|
Driver for HARDWARIO NFC Module.
◆ twr_tag_nfc_init()
Initialize NFC Tag.
- Parameters
-
[in] | self | Instance |
[in] | i2c_channel | I2C channel |
[in] | i2c_address | I2C device address |
Definition at line 10 of file twr_tag_nfc.c.
◆ twr_tag_nfc_memory_read()
bool twr_tag_nfc_memory_read |
( |
twr_tag_nfc_t * |
self, |
|
|
void * |
buffer, |
|
|
size_t |
length |
|
) |
| |
Read from memory.
- Parameters
-
[in] | self | Instance |
[out] | buffer | Pointer to destination buffer |
[in] | length | Number of bytes to be read, must by modulo 16, max 880 |
- Returns
- true On success
-
false On failure
Definition at line 66 of file twr_tag_nfc.c.
◆ twr_tag_nfc_memory_write()
bool twr_tag_nfc_memory_write |
( |
twr_tag_nfc_t * |
self, |
|
|
void * |
buffer, |
|
|
size_t |
length |
|
) |
| |
Write to memory.
- Parameters
-
[in] | self | Instance |
[in] | buffer | Pointer to source buffer |
[in] | length | Number of bytes to be written, must by modulo 16, max 880 |
- Returns
- true On success
-
false On failure
Definition at line 102 of file twr_tag_nfc.c.
Referenced by twr_tag_nfc_memory_write_ndef().
◆ twr_tag_nfc_memory_write_ndef()
Write to memory.
- Parameters
-
[in] | self | Instance |
[in] | ndef | Instance |
- Returns
- true On success
-
false On failure
Definition at line 144 of file twr_tag_nfc.c.
◆ twr_tag_nfc_ndef_add_text()
bool twr_tag_nfc_ndef_add_text |
( |
twr_tag_nfc_ndef_t * |
self, |
|
|
const char * |
text, |
|
|
const char * |
encoding |
|
) |
| |
Add ndef text record.
- Parameters
-
[in] | self | Instance |
[in] | *text | String to be added |
[in] | *encoding | Encoding for example "en" |
Definition at line 171 of file twr_tag_nfc.c.
◆ twr_tag_nfc_ndef_add_uri()
Add ndef uri record.
- Parameters
-
[in] | self | Instance |
[in] | *uri | URI |
Definition at line 199 of file twr_tag_nfc.c.
◆ twr_tag_nfc_ndef_init()