Loading...
Searching...
No Matches
kw2xrf_getset.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2016 Phytec Messtechnik GmbH
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
17
18#include "kw2xrf_reg.h"
19#include "kw2xrf.h"
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
31void kw2xrf_set_tx_power(kw2xrf_t *dev, int16_t txpower);
32
41
48int kw2xrf_set_channel(kw2xrf_t *dev, uint8_t val);
49
58
65
72
80
87void kw2xrf_set_pan(kw2xrf_t *dev, uint16_t pan);
88
95void kw2xrf_set_addr_short(kw2xrf_t *dev, uint16_t addr);
96
103void kw2xrf_set_addr_long(kw2xrf_t *dev, uint64_t addr);
104
112
120
128
135void kw2xrf_set_cca_threshold(kw2xrf_t *dev, int8_t value);
136
143void kw2xrf_set_cca_mode(kw2xrf_t *dev, uint8_t mode);
144
152
160int16_t kw2xrf_get_rssi(uint32_t value);
161
169
178
185void kw2xrf_set_rx_watermark(kw2xrf_t *dev, uint8_t value);
186
194void kw2xrf_set_option(kw2xrf_t *dev, uint16_t option, bool state);
195
196#ifdef __cplusplus
197}
198#endif
199
netopt_state_t
Option parameter to be used with NETOPT_STATE to set or get the state of a network device or protocol...
Definition netopt.h:900
Interface definition for the kw2xrf driver.
void kw2xrf_set_cca_threshold(kw2xrf_t *dev, int8_t value)
Set CCA threshold of a given device.
int16_t kw2xrf_get_rssi(uint32_t value)
Get RSSI from LQI value.
netopt_state_t kw2xrf_get_status(kw2xrf_t *dev)
Get state of a given device.
int8_t kw2xrf_get_cca_threshold(kw2xrf_t *dev)
Get CCA threshold of a given device.
void kw2xrf_set_cca_mode(kw2xrf_t *dev, uint8_t mode)
Set CCA mode of a given device.
void kw2xrf_set_idle_sequence(kw2xrf_t *dev)
Set idle sequence state of device.
uint16_t kw2xrf_get_txpower(kw2xrf_t *dev)
Get tx power value of given device.
void kw2xrf_set_sequence(kw2xrf_t *dev, kw2xrf_physeq_t seq)
Set sequence state of device.
void kw2xrf_abort_sequence(kw2xrf_t *dev)
Abort current sequence of device.
uint64_t kw2xrf_get_addr_long(kw2xrf_t *dev)
Get long address of a given device.
int kw2xrf_set_channel(kw2xrf_t *dev, uint8_t val)
Set channel of given device.
uint16_t kw2xrf_get_addr_short(kw2xrf_t *dev)
Get short address of a given device.
void kw2xrf_set_rx_watermark(kw2xrf_t *dev, uint8_t value)
Set receive watermark.
void kw2xrf_set_tx_power(kw2xrf_t *dev, int16_t txpower)
Set tx power of given device.
void kw2xrf_set_addr_long(kw2xrf_t *dev, uint64_t addr)
Set long address of a given device.
uint8_t kw2xrf_get_cca_mode(kw2xrf_t *dev)
Get CCA mode of a given device.
void kw2xrf_set_pan(kw2xrf_t *dev, uint16_t pan)
Set PAN ID of a given device.
void kw2xrf_set_addr_short(kw2xrf_t *dev, uint16_t addr)
Set short address of a given device.
uint8_t kw2xrf_get_channel(kw2xrf_t *dev)
Get channel of given device.
void kw2xrf_set_option(kw2xrf_t *dev, uint16_t option, bool state)
Set netopt a given device.
int kw2xrf_cca(kw2xrf_t *dev)
Enable continuous CCA.
Register and command definitions for the MKW2XD Modem.
kw2xrf_physeq_t
Transceiver Sequence Selector, define Values for XCVSEQ.
Definition kw2xrf_reg.h:78
Device descriptor for KW2XRF radio devices.
Definition kw2xrf.h:115