![]() |
Synergy Software Package User's Manual
|
#include <r_opamp_api.h>
Data Fields | |
| ssp_err_t(* | open )(opamp_ctrl_t *const p_ctrl, opamp_cfg_t const *const p_cfg) |
| ssp_err_t(* | start )(opamp_ctrl_t *const p_ctrl, uint32_t const channel_mask) |
| ssp_err_t(* | stop )(opamp_ctrl_t *const p_ctrl, uint32_t const channel_mask) |
| ssp_err_t(* | trim )(opamp_ctrl_t *const p_ctrl, opamp_trim_cmd_t const cmd, opamp_trim_args_t const *const p_args) |
| ssp_err_t(* | infoGet )(opamp_ctrl_t *const p_ctrl, opamp_info_t *const p_info) |
| ssp_err_t(* | statusGet )(opamp_ctrl_t *const p_ctrl, opamp_status_t *const p_status) |
| ssp_err_t(* | close )(opamp_ctrl_t *const p_ctrl) |
| ssp_err_t(* | versionGet )(ssp_version_t *const p_version) |
OPAMP functions implemented at the HAL layer will follow this API.
| ssp_err_t(* opamp_api_t::close) (opamp_ctrl_t *const p_ctrl) |
Close the specified OPAMP unit by ending any scan in progress, disabling interrupts, and removing power to the specified A/D unit.
| [in] | p_ctrl | Pointer to instance control block |
| ssp_err_t(* opamp_api_t::infoGet) (opamp_ctrl_t *const p_ctrl, opamp_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 | OPAMP information stored here |
| ssp_err_t(* opamp_api_t::open) (opamp_ctrl_t *const p_ctrl, opamp_cfg_t const *const p_cfg) |
Initialize the operational amplifier.
| [in] | p_ctrl | Pointer to instance control block |
| [in] | p_cfg | Pointer to configuration |
| ssp_err_t(* opamp_api_t::start) (opamp_ctrl_t *const p_ctrl, uint32_t const channel_mask) |
Start the op-amp(s).
| [in] | p_ctrl | Pointer to instance control block |
| [in] | channel_mask | Bitmask of channels to start |
| ssp_err_t(* opamp_api_t::statusGet) (opamp_ctrl_t *const p_ctrl, opamp_status_t *const p_status) |
Provide status of each op-amp channel.
| [in] | p_ctrl | Pointer to instance control block |
| [out] | p_status | Status stored here |
| ssp_err_t(* opamp_api_t::stop) (opamp_ctrl_t *const p_ctrl, uint32_t const channel_mask) |
Stop the op-amp(s).
| [in] | p_ctrl | Pointer to instance control block |
| [in] | channel_mask | Bitmask of channels to stop |
| ssp_err_t(* opamp_api_t::trim) (opamp_ctrl_t *const p_ctrl, opamp_trim_cmd_t const cmd, opamp_trim_args_t const *const p_args) |
Trim the op-amp(s). Not supported on all MCUs. See implementation for procedure details.
| [in] | p_ctrl | Pointer to instance control block |
| [in] | cmd | Trim command |
| [in] | p_args | Pointer to arguments for the command |
| ssp_err_t(* opamp_api_t::versionGet) (ssp_version_t *const p_version) |
Retrieve the API version.
| [in] | p_version | Pointer to version structure |