Annex wps_multi_cfg_t Structure

The dual radio feature requires a free running timer to enable synchronization of both transceiver modules together. The user must initialize this timer in their BSP and provide functions to set the timer’s period and control it (start/stop).

Timer configuration:
  • Counter Up mode

  • Auto-reload preload disabled

  • 20.48MHz tick frequency

  • Generate interruption at end of period.

The structure below is a child element of the Wireless Core_hal_t that needs to be populated with these timer functions set.

165/** @brief WPS Dual radio function pointer configuration structure.
166 */
167typedef struct wps_multi_cfg {
168    void (*timer_start)(void);                 /*!< Radio timer start interface. */
169    void (*timer_stop)(void);                  /*!< Radio timer stop interface. */
170    void (*timer_set_period)(uint16_t period); /*!< Radio timer set period interface. */
171} wps_multi_cfg_t;

timer_set_period

This function sets the number of ticks required before an IRQ is triggered.

timer_start

This functions starts the free running timer.

timer_stop

This functions stops the free running timer.

Return to Wireless Core article