RA Flexible Software Package Documentation
Release v5.6.0
|
|
Interface for Operational Amplifiers.
The OPAMP interface provides standard operational amplifier functionality, including starting and stopping the amplifier.
Data Structures | |
struct | opamp_trim_args_t |
struct | opamp_info_t |
struct | opamp_status_t |
struct | opamp_cfg_t |
struct | opamp_api_t |
struct | opamp_instance_t |
Typedefs | |
typedef void | opamp_ctrl_t |
Enumerations | |
enum | opamp_trim_cmd_t |
enum | opamp_trim_input_t |
struct opamp_trim_args_t |
OPAMP trim arguments.
Data Fields | ||
---|---|---|
uint8_t | channel | Channel. |
opamp_trim_input_t | input | Which input of the channel above. |
struct opamp_info_t |
struct opamp_status_t |
struct opamp_cfg_t |
struct opamp_api_t |
OPAMP functions implemented at the HAL layer will follow this API.
Data Fields | |
fsp_err_t(* | open )(opamp_ctrl_t *const p_ctrl, opamp_cfg_t const *const p_cfg) |
fsp_err_t(* | start )(opamp_ctrl_t *const p_ctrl, uint32_t const channel_mask) |
fsp_err_t(* | stop )(opamp_ctrl_t *const p_ctrl, uint32_t const channel_mask) |
fsp_err_t(* | trim )(opamp_ctrl_t *const p_ctrl, opamp_trim_cmd_t const cmd, opamp_trim_args_t const *const p_args) |
fsp_err_t(* | infoGet )(opamp_ctrl_t *const p_ctrl, opamp_info_t *const p_info) |
fsp_err_t(* | statusGet )(opamp_ctrl_t *const p_ctrl, opamp_status_t *const p_status) |
fsp_err_t(* | close )(opamp_ctrl_t *const p_ctrl) |
fsp_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 |
fsp_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 |
fsp_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 |
fsp_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 |
fsp_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 |
fsp_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 |
fsp_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 |
struct opamp_instance_t |
This structure encompasses everything that is needed to use an instance of this interface.
Data Fields | ||
---|---|---|
opamp_ctrl_t * | p_ctrl | Pointer to the control structure for this instance. |
opamp_cfg_t const * | p_cfg | Pointer to the configuration structure for this instance. |
opamp_api_t const * | p_api | Pointer to the API structure for this instance. |
typedef void opamp_ctrl_t |
OPAMP control block. Allocate using driver instance control structure from driver instance header file.
enum opamp_trim_cmd_t |
enum opamp_trim_input_t |