LibDriver NRF905
Loading...
Searching...
No Matches
driver_nrf905_interface_template.c
Go to the documentation of this file.
1
36
38
47{
48 return 0;
49}
50
59{
60 return 0;
61}
62
73uint8_t nrf905_interface_spi_read(uint8_t reg, uint8_t *buf, uint16_t len)
74{
75 return 0;
76}
77
88uint8_t nrf905_interface_spi_write(uint8_t reg, uint8_t *buf, uint16_t len)
89{
90 return 0;
91}
92
103uint8_t nrf905_interface_spi_transmit(uint8_t *tx, uint8_t *rx, uint16_t len)
104{
105 return 0;
106}
107
116{
117 return 0;
118}
119
128{
129 return 0;
130}
131
141{
142 return 0;
143}
144
153{
154 return 0;
155}
156
165{
166 return 0;
167}
168
178{
179 return 0;
180}
181
190{
191 return 0;
192}
193
202{
203 return 0;
204}
205
215{
216 return 0;
217}
218
225{
226
227}
228
234void nrf905_interface_debug_print(const char *const fmt, ...)
235{
236
237}
238
246void nrf905_interface_receive_callback(uint8_t type, uint8_t *buf, uint8_t len)
247{
248 switch (type)
249 {
250 case NRF905_STATUS_AM :
251 {
252 nrf905_interface_debug_print("nrf905: address match.\n");
253
254 break;
255 }
257 {
258 nrf905_interface_debug_print("nrf905: tx done.\n");
259
260 break;
261 }
263 {
264 nrf905_interface_debug_print("nrf905: rx done.\n");
265
266 break;
267 }
268 default :
269 {
270 nrf905_interface_debug_print("nrf905: unknown code.\n");
271
272 break;
273 }
274 }
275}
driver nrf905 interface header file
@ NRF905_STATUS_AM
@ NRF905_STATUS_RX_DONE
@ NRF905_STATUS_TX_DONE
uint8_t nrf905_interface_spi_deinit(void)
interface spi bus deinit
uint8_t nrf905_interface_spi_init(void)
interface spi bus init
uint8_t nrf905_interface_spi_transmit(uint8_t *tx, uint8_t *rx, uint16_t len)
interface spi bus transmit
void nrf905_interface_debug_print(const char *const fmt,...)
interface print format data
uint8_t nrf905_interface_ce_gpio_init(void)
interface ce gpio init
uint8_t nrf905_interface_spi_write(uint8_t reg, uint8_t *buf, uint16_t len)
interface spi bus write
uint8_t nrf905_interface_pwr_up_gpio_init(void)
interface pwr up gpio init
void nrf905_interface_delay_ms(uint32_t ms)
interface delay ms
uint8_t nrf905_interface_pwr_up_gpio_write(uint8_t data)
interface pwr up gpio write
uint8_t nrf905_interface_tx_en_gpio_write(uint8_t data)
interface tx en gpio write
uint8_t nrf905_interface_pwr_up_gpio_deinit(void)
interface pwr up gpio deinit
uint8_t nrf905_interface_ce_gpio_write(uint8_t data)
interface ce gpio write
uint8_t nrf905_interface_spi_read(uint8_t reg, uint8_t *buf, uint16_t len)
interface spi bus read
uint8_t nrf905_interface_tx_en_gpio_init(void)
interface tx en gpio init
uint8_t nrf905_interface_ce_gpio_deinit(void)
interface ce gpio deinit
void nrf905_interface_receive_callback(uint8_t type, uint8_t *buf, uint8_t len)
interface receive callback
uint8_t nrf905_interface_tx_en_gpio_deinit(void)
interface tx en gpio deinit