43 #ifndef HAL_ACI_TL_H__
44 #define HAL_ACI_TL_H__
51 #include <mraa/gpio.h>
54 #ifndef HAL_ACI_MAX_LENGTH
55 #define HAL_ACI_MAX_LENGTH 31
72 typedef struct aci_pins_t
74 mraa_spi_context m_spi;
75 mraa_gpio_context m_rdy_ctx;
76 mraa_gpio_context m_req_ctx;
77 mraa_gpio_context m_rst_ctx;
86 uint8_t spi_clock_divider;
90 uint8_t optional_chip_sel_pin;
92 bool interface_is_interrupt;
94 uint8_t interrupt_number;
188 #endif // HAL_ACI_TL_H__
bool hal_aci_tl_rx_q_full(void)
Return full status of transmit queue.
Definition: hal_aci_tl.cpp:441
bool hal_aci_tl_tx_q_empty(void)
Return empty status of transmit queue.
Definition: hal_aci_tl.cpp:446
bool hal_aci_tl_event_peek(hal_aci_data_t *p_aci_data)
Peek an ACI event from the event queue.
Definition: hal_aci_tl.cpp:277
bool hal_aci_tl_event_get(hal_aci_data_t *p_aci_data)
Get an ACI event from the event queue.
Definition: hal_aci_tl.cpp:292
void hal_aci_tl_init(aci_pins_t *a_pins, bool debug)
ACI Transport Layer initialization.
Definition: hal_aci_tl.cpp:329
bool hal_aci_tl_tx_q_full(void)
Return full status of receive queue.
Definition: hal_aci_tl.cpp:451
Defines for the different Bluetooth low energy boards.
void hal_aci_tl_debug_print(bool enable)
Enable debug printing of all ACI commands sent and ACI events received.
Definition: hal_aci_tl.cpp:248
bool hal_aci_tl_send(hal_aci_data_t *aci_buffer)
Sends an ACI command to the radio.
Definition: hal_aci_tl.cpp:405
hal_aci_data_t * hal_aci_tl_poll_get(void)
Process pending transactions.
void hal_aci_tl_pin_reset(void)
Pin reset the nRF8001.
Definition: hal_aci_tl.cpp:253
#define HAL_ACI_MAX_LENGTH
Module for the ACI Transport Layer interface.
Definition: hal_aci_tl.h:55
bool hal_aci_tl_rx_q_empty(void)
Return empty status of receive queue.
Definition: hal_aci_tl.cpp:436
Structure for the ACI_CMD_SET_LOCAL_DATA ACI command parameters.
Definition: aci.h:271
void hal_aci_tl_q_flush(void)
Flush the ACI command Queue and the ACI Event Queue.
Definition: hal_aci_tl.cpp:456