Device driver for the NXP KW41Z, KW21Z in-cpu transceiver.
More...
Device driver for the NXP KW41Z, KW21Z in-cpu transceiver.
|
typedef void(* | kw41zrf_cb_t) (void *arg) |
| ISR callback function type.
|
|
◆ KW41ZRF_DEFAULT_TX_POWER
Default TX_POWER in dbm used after initialization.
Definition at line 80 of file kw41zrf.h.
◆ KW41ZRF_MAX_CHANNEL
#define KW41ZRF_MAX_CHANNEL (26U) |
◆ KW41ZRF_MAX_PKT_LENGTH
Maximum packet length.
Definition at line 39 of file kw41zrf.h.
◆ KW41ZRF_MIN_CHANNEL
#define KW41ZRF_MIN_CHANNEL (11U) |
Allowed range of channels.
Definition at line 73 of file kw41zrf.h.
◆ KW41ZRF_OUTPUT_POWER_MAX
#define KW41ZRF_OUTPUT_POWER_MAX (4) |
Maximum output power of the kw41z device in dBm.
Definition at line 85 of file kw41zrf.h.
◆ KW41ZRF_OUTPUT_POWER_MIN
#define KW41ZRF_OUTPUT_POWER_MIN (-19) |
Minimum output power of the kw41z device in dBm.
Definition at line 90 of file kw41zrf.h.
◆ kw41zrf_cb_t
typedef void(* kw41zrf_cb_t) (void *arg) |
ISR callback function type.
Definition at line 95 of file kw41zrf.h.
◆ kw41zrf_init()
Initialize the given KW41ZRF device.
- Parameters
-
[out] | dev | device descriptor |
[in] | cb | irq callback |
- Returns
- 0 on success
-
<0 on error
◆ kw41zrf_reset()
Reset radio hardware and restore default settings.
- Parameters
-
- Returns
- 0 on success
-
<0 on initialization failure
◆ kw41zrf_setup()
void kw41zrf_setup |
( |
kw41zrf_t * |
dev, |
|
|
uint8_t |
index |
|
) |
| |
Setup an KW41ZRF based device state.
- Parameters
-
[out] | dev | device descriptor |
[in] | index | index of params in a global parameter struct array. If initialized manually, pass a unique identifier instead. |