Our website is under construction. Please stay tuned!

dwm_int_cfg_set

It enables/disables the setting ofa a dedicated GPIO pin in case of an event. Also, interrupts/events are communicated to the user by setting GPIO pin CORE_INT1. Users can use the pin as a source of an external interrupt. The interrupt can be processed by reading the status (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. Hence, it should not be used frequently and can 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)

  • output – err_code

C code example

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

SPI/UART example

TLV request

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) b h_initialized_changed (bit 4) bh_data_ready (bit 3) bh_status_changed (bit 2) spi_data_ready (bit #. 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 err_code of the previous command