1 #ifndef RUUVI_TASK_NFC_H
2 #define RUUVI_TASK_NFC_H
uint32_t rd_status_t
bitfield for representing errors
Ruuvi error codes and error check function.
Ruuvi sensor interface Lifecycle: Beta
void(* ri_comm_cb_t)(void *p_data, size_t data_len)
ri_comm_evt_t
Communication event type.
void rt_nfc_set_on_disconn_isr(const ri_comm_cb_t cb)
Setup disconnection event handler.
bool rt_nfc_is_connected()
check if NFC is connected, i.e. a reader is in range. NFC data cannot be changed during connection,...
void rt_nfc_set_on_sent_isr(const ri_comm_cb_t cb)
Setup data sent event handler.
rd_status_t rt_nfc_init(ri_comm_dis_init_t *const init_data)
Initializes NFC and configures FW, ADDR and ID records according to application_config....
void rt_nfc_set_on_connected_isr(const ri_comm_cb_t cb)
Setup connection event handler.
void rt_nfc_set_on_received_isr(const ri_comm_cb_t cb)
Setup data received event handler.
rd_status_t rt_nfc_uninit(void)
Uninitializes NFC.
bool rt_nfc_is_init(void)
check that NFC is initialized.
rd_status_t rt_nfc_on_nfc(ri_comm_evt_t evt, void *p_data, size_t data_len)
Handle Ruuvi communication events from NFC driver.
rd_status_t rt_nfc_send(ri_comm_message_t *message)
Sets given message to NFC RAM buffer. Clears previous message.
Application message structure used for communication.