Device driver for the NXP CR20A and KW2xD radios.
More...
Device driver for the NXP CR20A and KW2xD radios.
|
typedef struct kw2xrf_params | kw2xrf_params_t |
| Struct holding all params needed for device initialization.
|
|
◆ KW2XDRF_OUTPUT_POWER_MAX
#define KW2XDRF_OUTPUT_POWER_MAX (8) |
Maximum output power of the kw2x device in dBm.
Definition at line 76 of file kw2xrf.h.
◆ KW2XDRF_OUTPUT_POWER_MIN
#define KW2XDRF_OUTPUT_POWER_MIN (-35) |
Minimum output power of the kw2x device in dBm.
Definition at line 81 of file kw2xrf.h.
◆ KW2XRF_DEFAULT_TX_POWER
Default TX_POWER in dbm used after initialization.
Definition at line 71 of file kw2xrf.h.
◆ KW2XRF_MAX_CHANNEL
#define KW2XRF_MAX_CHANNEL (26U) |
◆ KW2XRF_MAX_PKT_LENGTH
Maximum packet length.
Definition at line 44 of file kw2xrf.h.
◆ KW2XRF_MIN_CHANNEL
#define KW2XRF_MIN_CHANNEL (11U) |
◆ KW2XRF_OPT_ACK_REQ
legacy define
Definition at line 93 of file kw2xrf.h.
◆ KW2XRF_OPT_AUTOACK
#define KW2XRF_OPT_AUTOACK (0x8000) |
enable automatically ACK for incommint packet
Definition at line 100 of file kw2xrf.h.
◆ KW2XRF_OPT_AUTOCCA
#define KW2XRF_OPT_AUTOCCA (0x0100) |
CCA before TX active.
Definition at line 95 of file kw2xrf.h.
◆ KW2XRF_OPT_PRELOADING
#define KW2XRF_OPT_PRELOADING (0x0400) |
preloading enabled
Definition at line 98 of file kw2xrf.h.
◆ KW2XRF_OPT_PROMISCUOUS
#define KW2XRF_OPT_PROMISCUOUS (0x0200) |
promiscuous mode active
Definition at line 97 of file kw2xrf.h.
◆ KW2XRF_OPT_RAWDUMP
legacy define
Definition at line 92 of file kw2xrf.h.
◆ KW2XRF_OPT_SRC_ADDR_LONG
Internal device option flags.
0x00ff
is reserved for general IEEE 802.15.4 flags (see netdev_ieee802154_t) legacy define
Definition at line 91 of file kw2xrf.h.
◆ kw2xrf_init()
Initialize the given KW2XRF device.
- Parameters
-
[out] | dev | device descriptor |
[in] | params | parameters for device initialization |
[in] | hal | pointer to IEEE 802.15.4 Radio HAL descriptor |
[in] | cb | isr callback |
[in] | ctx | context pointer handed to isr |
- Returns
- 0 on success
-
<0 on error
◆ kw2xrf_radio_hal_irq_handler()
void kw2xrf_radio_hal_irq_handler |
( |
void * |
dev | ) |
|
IRQ Handler for the KW2XRF device.
- Parameters
-
[in] | dev | pointer to the IEEE 802.15.4 Radio HAL descriptor |
◆ kw2xrf_reset_phy()
Configure radio with default values.
- Parameters
-