dwm_int_cfg_set

It enables or disables the setting of a dedicated GPIO pin in the event of an interrupt. Additionally, interrupts or events are communicated to the user by setting the GPIO pin CORE_INT1. Users can use this pin as a source for an external interrupt. The interrupt can be processed by reading the status using dwm_status_get and reacting to the new status accordingly. The status is cleared when read. This call is available only on UART/SPI interfaces. Normally, this call writes to internal flash when setting a new value, so it should not be used frequently, as it may take hundreds of milliseconds in the worst case!

void dwm_int_cfg_set(void)
Parameters
  • input – spi_data_ready, loc_ready, bh_status_changed, bh_data_ready, bh_initialized_changed, uwb_scan_ready, usr_data_ready, :param uwbmac_joined_changed

  • spi_data_ready – ‘0’ | ‘1’ (new SPI data generates interrupt on dedicated GPIO pin , 0=disable, 1=enable)

  • loc_ready – ‘0’ | ‘1’ (interrupt is generated when location data are ready, 0=disable, 1=enable)

  • bh_status_changed – ‘0’ | ‘1’ (UWBMAC status changed, 0=disable, 1=enable)

  • bh_data_ready – ‘0’ | ‘1’ (UWBMAC backhaul data ready, 0=disable, 1=enable)

  • bh_initialized_changed – ‘0’ | ‘1’ (UWBMAC route configured, 0=disable, 1=enable)

  • uwb_scan_ready – ‘0’ | ‘1’ (UWB scan result is available)

  • usr_data_ready – ‘0’ | ‘1’ (user data received over UWBMAC)

  • uwbmac_joined_changed – ‘0’ | ‘1’ (UWBMAC joined, 0=disable, 1=enable)

  • usr_data_sent – ‘0’ | ‘1’ (user data TX completed over UWBMAC)

  • outputStatus code

C code example

Not available in the on-module user application. Available only on external interfaces (SPI, UART)

SPI/UART example

Type

Length

Value

0x34

0x02

interrupt configuration flags:
reserved (bits 9-15)
usr_data_sent (bit 8)
uwbmac_joined_changed (bit 7)
usr_data_ready (bit 6)
uwb_scan_ready (bit 5)
bh_initialized_changed (bit 4)
bh_data_ready (bit 3)
bh_status_changed (bit 2)
spi_data_ready (bit 1)
loc_ready (bit 0)

0x0F 0x01

Type 0x34 means command dwm_int_cfg_set

TLV Response

Type

Length

Value (see error codes)

0x40

0x01

0x00

Type 0x40 means Status code of the previous command