Mbed OS Reference
Loading...
Searching...
No Matches
Transport

Data Structures

struct  __transport
 

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. More...
 
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. More...
 
typedef struct __transport nfc_transport_t
 
void nfc_transport_init (nfc_transport_t *pTransport, nfc_transport_write_fn_t write, nfc_transport_read_fn_t read, void *pUser)
 

Detailed Description

Typedef Documentation

◆ nfc_transport_write_fn_t

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
addressaddress of the register to write to
outBufbuffer to write
outLenbuffer's length
pUserparameter passed to the nfc_transport_init function

Definition at line 46 of file nfc_transport.h.

◆ nfc_transport_read_fn_t

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
addressaddress to read packet from
inBufbuffer to read
inLenbuffer's length
pUserparameter passed to the nfc_transport_init function

Definition at line 54 of file nfc_transport.h.