ruuvi.drivers.c ${PROJECT_VERSION}
Drivers for external sensors and peripherals on embedded systems.
Loading...
Searching...
No Matches
ruuvi_task_nfc.h
Go to the documentation of this file.
1#ifndef RUUVI_TASK_NFC_H
2#define RUUVI_TASK_NFC_H
38#include "ruuvi_driver_error.h"
39#include "ruuvi_driver_sensor.h"
42#include "ruuvi_interface_log.h"
43
53
63
69bool rt_nfc_is_init (void);
70
80
91rd_status_t rt_nfc_on_nfc (ri_comm_evt_t evt, void * p_data, size_t data_len);
92
102
112
122
132
141
142// Let Ceedling test internal functions
143#ifdef CEEDLING
144rd_status_t rt_nfc_isr (ri_comm_evt_t evt, void * p_data, size_t data_len);
145rd_status_t sw_set (const char * const sw);
146rd_status_t mac_set (const char * const mac);
147rd_status_t id_set (const char * const id);
148
149#endif
150
151
153#endif
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.