Initial release. Mbed library for VL53L1CB
Nfc Class Reference
An abstract class for Nfc components. More...
#include <Nfc.h>
Inherits Component.
Public Member Functions | |
virtual int | read_binary (uint16_t offset, uint8_t nb_bytes_to_read, uint8_t *p_buffer_read)=0 |
Read data from the tag. | |
virtual int | update_binary (uint16_t offset, uint8_t nb_bytes_to_write, uint8_t *p_buffer_write)=0 |
Write data to the tag. | |
virtual | ~Nfc () |
Destructor. | |
virtual int | init (void *init)=0 |
Initializing the component. | |
virtual int | read_id (uint8_t *id)=0 |
Getting the ID of the component. |
Detailed Description
An abstract class for Nfc components.
Definition at line 63 of file Nfc.h.
Constructor & Destructor Documentation
Member Function Documentation
virtual int init | ( | void * | init ) | [pure virtual, inherited] |
Initializing the component.
- Parameters:
-
[in] init pointer to device specific initalization structure.
- Return values:
-
0 in case of success, an error code otherwise.
Implemented in VL53L1X.
virtual int read_binary | ( | uint16_t | offset, |
uint8_t | nb_bytes_to_read, | ||
uint8_t * | p_buffer_read | ||
) | [pure virtual] |
Read data from the tag.
- Parameters:
-
offset Read offset. nb_bytes_to_read Number of bytes to read. [out] p_buffer_read Buffer to store the read data into.
- Returns:
- NFC_SUCCESS if no errors
virtual int read_id | ( | uint8_t * | id ) | [pure virtual, inherited] |
Getting the ID of the component.
- Parameters:
-
[out] id pointer to an allocated variable to store the ID into.
- Return values:
-
0 in case of success, an error code otherwise.
Implemented in VL53L1X.
virtual int update_binary | ( | uint16_t | offset, |
uint8_t | nb_bytes_to_write, | ||
uint8_t * | p_buffer_write | ||
) | [pure virtual] |
Write data to the tag.
- Parameters:
-
offset Write offset. nb_bytes_to_write Number of bytes to write. p_buffer_write Buffer to write.
- Returns:
- NFC_SUCCESS if no errors
Generated on Tue Jul 12 2022 20:07:15 by 1.7.2