Kenji Arai / mbed-os_TYBLE16

Dependents:   TYBLE16_simple_data_logger TYBLE16_MP3_Air

Embed: (wiki syntax)

« Back to documentation index

PN512

PN512

Transceiver

Implementation of the transceiver interface


static const transceiver_impl_t pn512_impl
nfc_err_t pn512_init (pn512_t *pPN512, nfc_transport_t *pTransport, nfc_scheduler_timer_t *pTimer)
 Initialize PN512 transceiver.
nfc_transceiver_t * pn512_get_transceiver (pn512_t *pPN512)
 Get pointer to nfc_transceiver_t structure.
void pn512_set_protocols (nfc_transceiver_t *pTransceiver, nfc_tech_t initiators, nfc_tech_t targets, polling_options_t options)
void pn512_poll (nfc_transceiver_t *pTransceiver)
void pn512_set_crc (nfc_transceiver_t *pTransceiver, bool crc_out, bool crc_in)
void pn512_set_timeout (nfc_transceiver_t *pTransceiver, int timeout)
void pn512_set_transceive_options (nfc_transceiver_t *pTransceiver, bool transmit, bool receive, bool repoll)
void pn512_set_transceive_framing (nfc_transceiver_t *pTransceiver, nfc_framing_t framing)
void pn512_set_write (nfc_transceiver_t *pTransceiver, ac_buffer_t *pWriteBuf)
ac_buffer_t * pn512_get_read (nfc_transceiver_t *pTransceiver)
void pn512_set_last_byte_length (nfc_transceiver_t *pTransceiver, size_t lastByteLength)
void pn512_set_first_byte_align (nfc_transceiver_t *pTransceiver, size_t firstByteAlign)
size_t pn512_get_last_byte_length (nfc_transceiver_t *pTransceiver)
void pn512_transceive (nfc_transceiver_t *pTransceiver)
void pn512_abort (nfc_transceiver_t *pTransceiver)
void pn512_close (nfc_transceiver_t *pTransceiver)
void pn512_sleep (nfc_transceiver_t *pTransceiver, bool sleep)
void pn512_transceiver_callback (pn512_t *pPN512, nfc_err_t ret)

Function Documentation

nfc_transceiver_t* pn512_get_transceiver ( pn512_t *  pPN512 )

Get pointer to nfc_transceiver_t structure.

Parameters:
pPN512pointer to pn512_t instance
Returns:
pointer to initialized nfc_transceiver_t instance

Definition at line 189 of file pn512.c.

nfc_err_t pn512_init ( pn512_t *  pPN512,
nfc_transport_t *  pTransport,
nfc_scheduler_timer_t *  pTimer 
)

Initialize PN512 transceiver.

Parameters:
pPN512pointer to pn512_t structure to initialize
pTransportpointer to already initialized nfc_transport_t structure
Returns:
NFC_OK (0) on success or NFC_ERR_* error on failure

Definition at line 86 of file pn512.c.