LibDriver NRF905
Loading...
Searching...
No Matches
driver_nrf905_basic.h
Go to the documentation of this file.
1
36
37#ifndef DRIVER_NRF905_BASIC_H
38#define DRIVER_NRF905_BASIC_H
39
41
42#ifdef __cplusplus
43extern "C"{
44#endif
45
52
56#define NRF905_BASIC_DEFAULT_PLL_MODE NRF905_PLL_MODE_433_MHZ
57#define NRF905_BASIC_DEFAULT_OUTPUT_POWER NRF905_OUTPUT_POWER_10_DBM
58#define NRF905_BASIC_DEFAULT_RX_MODE NRF905_RX_MODE_NORMAL
59#define NRF905_BASIC_DEFAULT_AUTO_RETRANSMIT NRF905_BOOL_FALSE
60#define NRF905_BASIC_DEFAULT_RX_ADDRESS_WIDTH NRF905_ADDRESS_WIDTH_4_BYTE
61#define NRF905_BASIC_DEFAULT_TX_ADDRESS_WIDTH NRF905_ADDRESS_WIDTH_4_BYTE
62#define NRF905_BASIC_DEFAULT_RX_PAYLOAD_WIDTH 32
63#define NRF905_BASIC_DEFAULT_TX_PAYLOAD_WIDTH 32
64#define NRF905_BASIC_DEFAULT_RX_ADDR {0xE7, 0xE7, 0xE7, 0xE7}
65#define NRF905_BASIC_DEFAULT_OUTPUT_CLOCK_FREQUENCY NRF905_OUTPUT_CLOCK_FREQUENCY_500KHZ
66#define NRF905_BASIC_DEFAULT_OUTPUT_CLOCK NRF905_BOOL_FALSE
67#define NRF905_BASIC_DEFAULT_CRYSTAL_OSCILLATOR_FREQUENCY NRF905_CRYSTAL_OSCILLATOR_FREQUENCY_16MHZ
68#define NRF905_BASIC_DEFAULT_CRC NRF905_BOOL_TRUE
69#define NRF905_BASIC_DEFAULT_CRC_MODE NRF905_CRC_MODE_8
70#define NRF905_BASIC_DEFAULT_FREQUENCY 433.2f
71
80
90uint8_t nrf905_basic_init(nrf905_mode_t mode, void (*callback)(uint8_t type, uint8_t *buf, uint8_t len));
91
99uint8_t nrf905_basic_deinit(void);
100
111uint8_t nrf905_basic_send(uint8_t *addr, uint8_t *buf, uint8_t len);
112
116
117#ifdef __cplusplus
118}
119#endif
120
121#endif
driver nrf905 interface header file
nrf905_mode_t
nrf905 mode enumeration definition
uint8_t nrf905_basic_deinit(void)
basic example deinit
uint8_t nrf905_basic_send(uint8_t *addr, uint8_t *buf, uint8_t len)
basic example send
uint8_t nrf905_interrupt_irq_handler(void)
nrf905 irq
uint8_t nrf905_basic_init(nrf905_mode_t mode, void(*callback)(uint8_t type, uint8_t *buf, uint8_t len))
basic example init