Module for handling page requests related to page 70. More...
Modules | |
ANT+ request controller configuration | |
Data Structures | |
struct | ant_request_controller_t |
ANT request controller structure. More... | |
Enumerations | |
enum | ant_request_controller_evt_t { ANT_REQUEST_CONTROLLER_NONE, ANT_REQUEST_CONTROLLER_SUCCESS, ANT_REQUEST_CONTROLLER_FAILED } |
Request controller events types. More... | |
enum | ant_request_controller_state_t { ANT_REQUEST_CONTROLLER_IDLE, ANT_REQUEST_CONTROLLER_SENDED, ANT_REQUEST_CONTROLLER_BROADCAST_REQUESTED, ANT_REQUEST_CONTROLLER_ACK_REQUESTED, ANT_REQUEST_CONTROLLER_ACK_UNTIL_SUCCESS_REQUESTED } |
Request controller states. More... | |
Functions | |
void | ant_request_controller_init (ant_request_controller_t *p_controller) |
Function for initializing the ANT request controller instance. More... | |
uint32_t | ant_request_controller_request (ant_request_controller_t *p_controller, uint8_t channel_number, ant_common_page70_data_t *p_page_70) |
Function for sending a request. More... | |
bool | ant_request_controller_pending_get (ant_request_controller_t *p_controller, uint8_t *p_page_number) |
Function for getting pending page number. More... | |
bool | ant_request_controller_ack_needed (ant_request_controller_t *p_controller) |
Function for checking whether the next page must be sent with acknowledgment. More... | |
ant_request_controller_evt_t | ant_request_controller_disp_evt_handler (ant_request_controller_t *p_controller, ant_evt_t *p_ant_event) |
Function for handling ANT events on display side. More... | |
void | ant_request_controller_sens_evt_handler (ant_request_controller_t *p_controller, ant_evt_t *p_ant_event) |
Function for handling ANT events on sensor side. More... | |
Module for handling page requests related to page 70.
Request controller states.
bool ant_request_controller_ack_needed | ( | ant_request_controller_t * | p_controller | ) |
Function for checking whether the next page must be sent with acknowledgment.
[in] | p_controller | Pointer to the controller instance. |
TRUE | If the next transmission needs acknowledgment. |
FALSE | If the next transmission does not need acknowledgment. |
ant_request_controller_evt_t ant_request_controller_disp_evt_handler | ( | ant_request_controller_t * | p_controller, |
ant_evt_t * | p_ant_event | ||
) |
Function for handling ANT events on display side.
All events from the ANT stack that are related to the appropriate channel number should be propagated.
[in] | p_controller | Pointer to the controller instance. |
[in] | p_ant_event | Event received from the ANT stack. |
void ant_request_controller_init | ( | ant_request_controller_t * | p_controller | ) |
Function for initializing the ANT request controller instance.
[in] | p_controller | Pointer to the controller instance. |
bool ant_request_controller_pending_get | ( | ant_request_controller_t * | p_controller, |
uint8_t * | p_page_number | ||
) |
Function for getting pending page number.
This function checks whether a page number was requested.
[in] | p_controller | Pointer to the controller instance. |
[out] | p_page_number | Pending page number (valid if true was returned). |
TRUE | If there was a pending page. |
FALSE | If no page was pending. |
uint32_t ant_request_controller_request | ( | ant_request_controller_t * | p_controller, |
uint8_t | channel_number, | ||
ant_common_page70_data_t * | p_page_70 | ||
) |
Function for sending a request.
[in] | p_controller | Pointer to the controller instance. |
[in] | channel_number | Channel number. |
[in] | p_page_70 | Pointer to the prepared page 70. |
void ant_request_controller_sens_evt_handler | ( | ant_request_controller_t * | p_controller, |
ant_evt_t * | p_ant_event | ||
) |
Function for handling ANT events on sensor side.
All events from the ANT stack that are related to the appropriate channel number should be propagated.
[in] | p_controller | Pointer to the controller instance. |
[in] | p_ant_event | Event received from the ANT stack. |
TRUE | If there was a pending page. |