KW41Z radio-driver

Device driver for the NXP KW41Z, KW21Z in-cpu transceiver. More...

Detailed Description

Device driver for the NXP KW41Z, KW21Z in-cpu transceiver.

Modules

 KW41Z, KW21Z in-cpu transceiver driver compile configuration
 

Files

file  kw41zrf.h
 Interface definition for the kw41zrf driver.
 
file  kw41zrf_getset.h
 get/set interfaces for kw41zrf driver
 
file  kw41zrf_intern.h
 Internal function interfaces for kw41zrf driver.
 
file  kw41zrf_netdev.h
 Netdev interface for kw41zrf driver.
 

Data Structures

struct  kw41zrf_t
 Device descriptor for KW41ZRF radio devices. More...
 

Macros

#define KW41ZRF_MAX_PKT_LENGTH   (IEEE802154_FRAME_LEN_MAX)
 Maximum packet length.
 
#define KW41ZRF_DEFAULT_TX_POWER   (CONFIG_IEEE802154_DEFAULT_TXPOWER)
 Default TX_POWER in dbm used after initialization.
 
#define KW41ZRF_OUTPUT_POWER_MAX   (4)
 Maximum output power of the kw41z device in dBm.
 
#define KW41ZRF_OUTPUT_POWER_MIN   (-19)
 Minimum output power of the kw41z device in dBm.
 

Typedefs

typedef void(* kw41zrf_cb_t) (void *arg)
 ISR callback function type.
 

Functions

void kw41zrf_setup (kw41zrf_t *dev, uint8_t index)
 Setup an KW41ZRF based device state. More...
 
int kw41zrf_init (kw41zrf_t *dev, kw41zrf_cb_t cb)
 Initialize the given KW41ZRF device. More...
 
int kw41zrf_reset (kw41zrf_t *dev)
 Reset radio hardware and restore default settings. More...
 
#define KW41ZRF_MIN_CHANNEL   (11U)
 Allowed range of channels.
 
#define KW41ZRF_MAX_CHANNEL   (26U)
 

Function Documentation

◆ kw41zrf_init()

int kw41zrf_init ( kw41zrf_t dev,
kw41zrf_cb_t  cb 
)

Initialize the given KW41ZRF device.

Parameters
[out]devdevice descriptor
[in]cbirq callback
Returns
0 on success
<0 on error

◆ kw41zrf_reset()

int kw41zrf_reset ( kw41zrf_t dev)

Reset radio hardware and restore default settings.

Parameters
[in]devdevice to reset
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]devdevice descriptor
[in]indexindex of params in a global parameter struct array. If initialized manually, pass a unique identifier instead.