Go to the documentation of this file.
19 #ifndef KW2XRF_INTERN_H
20 #define KW2XRF_INTERN_H
129 KW2XRF_TIMEBASE_500000HZ = 2,
130 KW2XRF_TIMEBASE_250000HZ,
131 KW2XRF_TIMEBASE_125000HZ,
132 KW2XRF_TIMEBASE_62500HZ,
133 KW2XRF_TIMEBASE_31250HZ,
134 KW2XRF_TIMEBASE_15625HZ,
kw2xrf_timer_timebase
Timebase values.
static void kw2xrf_set_dreg_bit(kw2xrf_t *dev, uint8_t reg, uint8_t bit)
Set a certain bit of a kw2xrf register.
void kw2xrf_seq_timeout_off(kw2xrf_t *dev)
Disable sequence timeout.
uint32_t kw2xrf_get_timestamp(kw2xrf_t *dev)
Returns Timestamp of the actual received packet.
void kw2xrf_timer3_seq_abort_off(kw2xrf_t *dev)
Disable abort sequence timer.
void kw2xrf_timer2_seq_start_off(kw2xrf_t *dev)
Disable start sequence timer.
void kw2xrf_timer_init(kw2xrf_t *dev, kw2xrf_timer_timebase_t tb)
Initialize the Event Timer Block (up counter)
void kw2xrf_trigger_tx_ops_enable(kw2xrf_t *dev, uint32_t timeout)
Use T2CMP or T2PRIMECMP to Trigger Transceiver Operations.
void kw2xrf_write_dreg(kw2xrf_t *dev, uint8_t addr, uint8_t value)
Writes a byte to the kw2xrf register.
void kw2xrf_seq_timeout_on(kw2xrf_t *dev, uint32_t timeout)
Enable sequence timeout.
void kw2xrf_timer2_seq_start_on(kw2xrf_t *dev)
Enable start sequence time.
void kw2xrf_set_power_mode(kw2xrf_t *dev, kw2xrf_powermode_t pm)
Set power mode for device.
static void kw2xrf_clear_dreg_bit(kw2xrf_t *dev, uint8_t reg, uint8_t bit)
Clear a certain bit of a kw2xrf register.
int kw2xrf_can_switch_to_idle(kw2xrf_t *dev)
uint8_t kw2xrf_read_dreg(kw2xrf_t *dev, uint8_t addr)
Reads a byte from the kw2xrf register.
void kw2xrf_trigger_tx_ops_disable(kw2xrf_t *dev)
Disable Trigger for Transceiver Operations.
static void kw2xrf_mask_irq_b(kw2xrf_t *dev)
Mask all transceiver interrupts to assert IRQ_B.
Interface definition for the kw2xrf driver.
void kw2xrf_disable_interrupts(kw2xrf_t *dev)
Disable all interrupts on transceiver.
void kw2xrf_abort_rx_ops_enable(kw2xrf_t *dev, uint32_t timeout)
Use T3CMP to Abort an RX operation.
void kw2xrf_timer3_seq_abort_on(kw2xrf_t *dev)
Enable abort sequence timer.
void kw2xrf_update_overwrites(kw2xrf_t *dev)
kw2xrf_powermode_t
Power Modes.
void kw2xrf_set_out_clk(kw2xrf_t *dev)
static void kw2xrf_enable_irq_b(kw2xrf_t *dev)
Enable any transceiver interrupt to assert IRQ_B.
@ MKW2XDM_PHY_CTRL4
PHY Control 4.
enum kw2xrf_timer_timebase kw2xrf_timer_timebase_t
Timebase values.
Device descriptor for KW2XRF radio devices.
void kw2xrf_abort_rx_ops_disable(kw2xrf_t *dev)
Disable Trigger to Abort an RX operation.