![]() |
Synergy Software Package User's Manual
|
#include <r_comparator_api.h>
Data Fields | |
| ssp_err_t(* | open )(comparator_ctrl_t *const p_ctrl, comparator_cfg_t const *const p_cfg) |
| ssp_err_t(* | outputEnable )(comparator_ctrl_t *const p_ctrl) |
| ssp_err_t(* | infoGet )(comparator_ctrl_t *const p_ctrl, comparator_info_t *const p_info) |
| ssp_err_t(* | statusGet )(comparator_ctrl_t *const p_ctrl, comparator_status_t *const p_status) |
| ssp_err_t(* | close )(comparator_ctrl_t *const p_ctrl) |
| ssp_err_t(* | versionGet )(ssp_version_t *const p_version) |
Comparator functions implemented at the HAL layer will follow this API.
| ssp_err_t(* comparator_api_t::close) (comparator_ctrl_t *const p_ctrl) |
Stop the comparator.
| [in] | p_ctrl | Pointer to instance control block |
| ssp_err_t(* comparator_api_t::infoGet) (comparator_ctrl_t *const p_ctrl, comparator_info_t *const p_info) |
Provide information such as the recommended minimum stabilization wait time.
| [in] | p_ctrl | Pointer to instance control block |
| [out] | p_info | Comparator information stored here |
| ssp_err_t(* comparator_api_t::open) (comparator_ctrl_t *const p_ctrl, comparator_cfg_t const *const p_cfg) |
Initialize the comparator.
| [in] | p_ctrl | Pointer to instance control block |
| [in] | p_cfg | Pointer to configuration |
| ssp_err_t(* comparator_api_t::outputEnable) (comparator_ctrl_t *const p_ctrl) |
Start the comparator.
| [in] | p_ctrl | Pointer to instance control block |
| ssp_err_t(* comparator_api_t::statusGet) (comparator_ctrl_t *const p_ctrl, comparator_status_t *const p_status) |
Provide current comparator status.
| [in] | p_ctrl | Pointer to instance control block |
| [out] | p_status | Status stored here |
| ssp_err_t(* comparator_api_t::versionGet) (ssp_version_t *const p_version) |
Retrieve the API version.
| [in] | p_version | Pointer to version structure |