modules/woz_uwb/src/driver/uwb_min.h
asxeem/openaliro
Module

uwb_min.h

Minimal DW3110 (DWM3000EVB) hardware bring-up driver.

modules/woz_uwb/src/driver/uwb_min.h3 documented symbols

Overview

Minimal DW3110 (DWM3000EVB) hardware bring-up driver.

used by ccc_shim_rx.c uwb_min.c aliro_shell.c

API

Cstruct uwb_selftest_result

modules/woz_uwb/src/driver/uwb_min.h:13

Self-test result emitted by @ref uwb_min_selftest.

Cstruct uwb_twr_result

modules/woz_uwb/src/driver/uwb_min.h:31

Result of a raw static-STS SS-TWR initiator burst (@ref uwb_min_twr_poll).

Cstruct uwb_twr_frame

modules/woz_uwb/src/driver/uwb_min.h:40

Outcome of one raw SS-TWR POLL/RESP exchange (@ref uwb_min_twr_exchange).

##define UWB_DW3110_DEV_ID 0xDECA0302u

modules/woz_uwb/src/driver/uwb_min.h:10

Expected DEV_ID value for the DW3110 (the IC on the DWM3000 module).

Fint uwb_min_read_chipid(uint32_t *id_out)

modules/woz_uwb/src/driver/uwb_min.h:22

Read the DW3000-family DEV_ID register over SPI.

Fint uwb_min_hw_reset(void)

modules/woz_uwb/src/driver/uwb_min.h:25

Pulse the DW3110 RST line low to force a hardware reset.

Fint uwb_min_selftest(struct uwb_selftest_result *out)

modules/woz_uwb/src/driver/uwb_min.h:28

Radio self-test: configure, TX one frame, then arm RX.

Fint uwb_min_twr_prep(void)

modules/woz_uwb/src/driver/uwb_min.h:48

Configure the radio for the raw SS-TWR loopback (SP3-ND, ch9, code11); no STS.

Fvoid uwb_min_twr_exchange(struct uwb_twr_frame *f)

modules/woz_uwb/src/driver/uwb_min.h:51

Run one POLL/RESP exchange; the STS must already be programmed.

Fint uwb_min_twr_poll(uint32_t n, uint32_t period_ms, struct uwb_twr_result *out)

modules/woz_uwb/src/driver/uwb_min.h:54

Raw static-STS SS-TWR initiator burst (bench probe).

Fint uwb_min_radio_init(void)

modules/woz_uwb/src/driver/uwb_min.h:57

Ensure the DW3110 is fully initialised (probe + initialise + configure + LEDs).

Fuint32_t uwb_min_radio_generation(void)

modules/woz_uwb/src/driver/uwb_min.h:60

Count of fresh radio inits; changes whenever the base config was re-applied.