Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: TYBLE16_simple_data_logger TYBLE16_MP3_Air
Implementation
Transport | |
typedef void(* | nfc_transport_write_fn_t )(uint8_t address, const uint8_t *outBuf, size_t outLen, void *pUser) |
Function called to write a register's value. | |
typedef void(* | nfc_transport_read_fn_t )(uint8_t address, uint8_t *inBuf, size_t inLen, void *pUser) |
Function called to read a register's value. | |
typedef struct __transport | nfc_transport_t |
static void | nfc_transport_write (nfc_transport_t *pTransport, uint8_t address, const uint8_t *outBuf, size_t outLen) |
static void | nfc_transport_read (nfc_transport_t *pTransport, uint8_t address, uint8_t *inBuf, size_t inLen) |
Transport | |
void | nfc_transport_init (nfc_transport_t *pTransport, nfc_transport_write_fn_t write, nfc_transport_read_fn_t read, void *pUser) |
Initialize transport with a specific implementation. |
Typedef Documentation
typedef void(* nfc_transport_read_fn_t)(uint8_t address, uint8_t *inBuf, size_t inLen, void *pUser) |
Function called to read a register's value.
- Parameters:
-
address address to read packet from outBuf buffer to read outLen buffer's length pUser parameter passed to the nfc_transport_init function
Definition at line 53 of file nfc_transport.h.
typedef void(* nfc_transport_write_fn_t)(uint8_t address, const uint8_t *outBuf, size_t outLen, void *pUser) |
Function called to write a register's value.
- Parameters:
-
address address of the register to write to outBuf buffer to write outLen buffer's length pUser parameter passed to the nfc_transport_init function
Definition at line 45 of file nfc_transport.h.
Function Documentation
void nfc_transport_init | ( | nfc_transport_t * | pTransport, |
nfc_transport_write_fn_t | write, | ||
nfc_transport_read_fn_t | read, | ||
void * | pUser | ||
) |
Initialize transport with a specific implementation.
- Parameters:
-
pTransport pointer to a nfc_transport_t structure to initialize write transport write function read transport read function pUser parameter that will be passed to any of the above functions
Definition at line 39 of file nfc_transport.c.
Generated on Tue Jul 12 2022 13:55:27 by
