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)
 

Detailed Description

OPAMP functions implemented at the HAL layer will follow this API.

Field Documentation

◆ close

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.

Implemented as
Parameters
[in]p_ctrlPointer to instance control block

◆ infoGet

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.

Implemented as
Parameters
[in]p_ctrlPointer to instance control block
[out]p_infoOPAMP information stored here

◆ open

ssp_err_t(* opamp_api_t::open) (opamp_ctrl_t *const p_ctrl, opamp_cfg_t const *const p_cfg)

Initialize the operational amplifier.

Implemented as
Parameters
[in]p_ctrlPointer to instance control block
[in]p_cfgPointer to configuration

◆ start

ssp_err_t(* opamp_api_t::start) (opamp_ctrl_t *const p_ctrl, uint32_t const channel_mask)

Start the op-amp(s).

Implemented as
Parameters
[in]p_ctrlPointer to instance control block
[in]channel_maskBitmask of channels to start

◆ statusGet

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.

Implemented as
Parameters
[in]p_ctrlPointer to instance control block
[out]p_statusStatus stored here

◆ stop

ssp_err_t(* opamp_api_t::stop) (opamp_ctrl_t *const p_ctrl, uint32_t const channel_mask)

Stop the op-amp(s).

Implemented as
Parameters
[in]p_ctrlPointer to instance control block
[in]channel_maskBitmask of channels to stop

◆ trim

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.

Implemented as
Parameters
[in]p_ctrlPointer to instance control block
[in]cmdTrim command
[in]p_argsPointer to arguments for the command

◆ versionGet

ssp_err_t(* opamp_api_t::versionGet) (ssp_version_t *const p_version)

Retrieve the API version.

Implemented as
Precondition
This function retrieves the API version.
Parameters
[in]p_versionPointer to version structure

The documentation for this struct was generated from the following file: