Go to the documentation of this file.
85 #define NRFMIN_CHAN_MIN (0U)
86 #define NRFMIN_CHAN_DEFAULT (0U)
87 #define NRFMIN_CHAN_MAX (32)
93 #define NRFMIN_TXPOWER_DEFAULT (0)
98 #define NRFMIN_ADDR_BCAST (0xffff)
103 #ifndef NRFMIN_PAYLOAD_MAX
104 #define NRFMIN_PAYLOAD_MAX (200U)
111 #define NRFMIN_HDR_LEN (sizeof(nrfmin_hdr_t))
112 #define NRFMIN_PKT_MAX (NRFMIN_HDR_LEN + NRFMIN_PAYLOAD_MAX)
118 typedef struct __attribute__((packed)) {
129 struct __attribute__((packed)) {
133 uint8_t raw[NRFMIN_PKT_MAX];
Structure to hold driver interface -> function mapping.
const netdev_driver_t nrfmin_netdev
Reference to the netdev driver interface.
uint8_t proto
protocol of payload
void nrfmin_get_iid(uint16_t *iid)
Get the IID build from the 16-bit node address.
uint8_t len
packet length, including this header
#define NRFMIN_PAYLOAD_MAX
Default maximum payload length (must be <= 250)
void nrfmin_set_txpower(int16_t power)
Set the used transmission power.
int nrfmin_set_channel(uint16_t chan)
Set the active channel.
uint16_t src_addr
source address of the packet
netopt_state_t
Option parameter to be used with NETOPT_STATE to set or get the state of a network device or protocol...
int nrfmin_set_state(netopt_state_t val)
Put the device into the given state.
Header format used for our custom nrfmin link layer.
Definitions low-level network driver interface.
In-memory structure of a nrfmin radio packet.
Structure to hold driver state.
netopt_state_t nrfmin_get_state(void)
Get the current radio state.
uint16_t dst_addr
destination address
uint16_t nrfmin_get_channel(void)
Get the current channel.
int16_t nrfmin_get_txpower(void)
Get the current transmit power.
void nrfmin_setup(void)
Setup the device driver's data structures.
uint16_t nrfmin_get_addr(void)
Get the currently active address.
void nrfmin_set_addr(uint16_t addr)
Set the 16-bit radio address.
netdev_t nrfmin_dev
Export the netdev device descriptor.
nrfmin_hdr_t hdr
the nrfmin header