ANT State Indicator Library

Functions

int ant_state_indicator_init(uint8_t channel, uint8_t channel_type)

Function for initializing the ANT channel state indicator.

This function links the signaling procedure with a specific ANT channel.

Parameters
  • channel[in] ANT channel number.

  • channel_type[in] ANT channel type (see Assign Channel Parameters in ant_parameters.h: ANT Stack Parameters).

Return values

0 – If the module was initialized successfully. Otherwise, a propagated error code is returned.

void ant_state_indicator_channel_opened(void)

Function for indicating the channel opening.

This function should be called after the opening of the channel.

void ant_state_indicator_fatal_error(void)

Function for using the LEDs to indicate a fatal error.

This function configures the LEDs and then stops processing further events until it gets initialzed again.