| LibDriver NRF24L01 1.0.0 NRF24L01 full function driver

driver_nrf24l01_interface.h
Go to the documentation of this file.
1
37 #ifndef DRIVER_NRF24L01_INTERFACE_H
38 #define DRIVER_NRF24L01_INTERFACE_H
39
40 #include "driver_nrf24l01.h"
41
42 #ifdef __cplusplus
43 extern "C"{
44 #endif
45
60 uint8_t nrf24l01_interface_spi_init(void);
61
69 uint8_t nrf24l01_interface_spi_deinit(void);
70
81 uint8_t nrf24l01_interface_spi_read(uint8_t reg, uint8_t *buf, uint16_t len);
82
93 uint8_t nrf24l01_interface_spi_write(uint8_t reg, uint8_t *buf, uint16_t len);
94
102 uint8_t nrf24l01_interface_gpio_init(void);
103
111 uint8_t nrf24l01_interface_gpio_deinit(void);
112
121 uint8_t nrf24l01_interface_gpio_write(uint8_t data);
122
128 void nrf24l01_interface_delay_ms(uint32_t ms);
129
135 void nrf24l01_interface_debug_print(const char *const fmt, ...);
136
145 void nrf24l01_interface_receive_callback(uint8_t type, uint8_t num, uint8_t *buf, uint8_t len);
146
151 #ifdef __cplusplus
152 }
153 #endif
154
155 #endif
driver_nrf24l01.h
driver nrf24l01 header file
nrf24l01_interface_spi_read
uint8_t nrf24l01_interface_spi_read(uint8_t reg, uint8_t *buf, uint16_t len)
interface spi bus read
Definition: driver_nrf24l01_interface_template.c:73
nrf24l01_interface_spi_deinit
uint8_t nrf24l01_interface_spi_deinit(void)
interface spi bus deinit
Definition: driver_nrf24l01_interface_template.c:58
nrf24l01_interface_delay_ms
void nrf24l01_interface_delay_ms(uint32_t ms)
interface delay ms
Definition: driver_nrf24l01_interface_template.c:135
nrf24l01_interface_receive_callback
void nrf24l01_interface_receive_callback(uint8_t type, uint8_t num, uint8_t *buf, uint8_t len)
interface receive callback
Definition: driver_nrf24l01_interface_template.c:158
nrf24l01_interface_debug_print
void nrf24l01_interface_debug_print(const char *const fmt,...)
interface print format data
Definition: driver_nrf24l01_interface_template.c:145
nrf24l01_interface_gpio_deinit
uint8_t nrf24l01_interface_gpio_deinit(void)
interface gpio deinit
Definition: driver_nrf24l01_interface_template.c:112
nrf24l01_interface_gpio_init
uint8_t nrf24l01_interface_gpio_init(void)
interface gpio init
Definition: driver_nrf24l01_interface_template.c:100
nrf24l01_interface_spi_init
uint8_t nrf24l01_interface_spi_init(void)
interface spi bus init
Definition: driver_nrf24l01_interface_template.c:46
nrf24l01_interface_spi_write
uint8_t nrf24l01_interface_spi_write(uint8_t reg, uint8_t *buf, uint16_t len)
interface spi bus write
Definition: driver_nrf24l01_interface_template.c:88
nrf24l01_interface_gpio_write
uint8_t nrf24l01_interface_gpio_write(uint8_t data)
interface gpio write
Definition: driver_nrf24l01_interface_template.c:125