![]() |
Synergy Software Package User's Manual
|
Driver for internal analog connections. More...
Functions | |
| ssp_err_t | R_ANALOG_CONNECT_Init (analog_connect_cfg_t const *const p_cfg) |
| ssp_err_t | R_ANALOG_CONNECT_Connect (analog_connect_t const connection) |
| ssp_err_t | R_ANALOG_CONNECT_ConnectMultiple (analog_connect_table_t const *const p_table) |
| ssp_err_t | R_ANALOG_CONNECT_VersionGet (ssp_version_t *const p_version) |
Driver for internal analog connections.
Extends Analog Connect Interface.
This module implements the Analog Connect Interface.
| ssp_err_t R_ANALOG_CONNECT_Connect | ( | analog_connect_t const | connection | ) |
Makes an internal analog connection.
For ACMPHS connections, output and interrupts are disabled while the connection is configured, then the output and interrupts are restored to their original state. Since this function enables output if it was enabled before, R_ACMPHS_Close() should not be called during this function.
ACMPLP connections must be made prior to enabling output.
OPAMP connections can be reconfigured while the OPAMP is operating. If an OPAMP connection is already set and a new connection is made, the new connection overwrites the existing connection. OPAMP connections can be OR'd together if they are for the same signal:
If AVCC0 < 2.7 V, MOCO must be enabled to make OPAMP connections because the internal OPAMP switches require a charge pump, and the MOCO is required for charge pump operation. When using the charge pump for the amplifier:
| SSP_SUCCESS | Connection made. |
| ssp_err_t R_ANALOG_CONNECT_ConnectMultiple | ( | analog_connect_table_t const *const | p_table | ) |
Makes all connections in the table.
See R_ANALOG_CONNECT_Connect() for modules specific usage notes regarding connections.
| SSP_SUCCESS | All connections made. |
| SSP_ERR_ASSERTION | Data table pointer is NULL or size is 0. |
| ssp_err_t R_ANALOG_CONNECT_Init | ( | analog_connect_cfg_t const *const | p_cfg | ) |
Placeholder function for analog connection initialization code. Currently unused.
| SSP_SUCCESS | Init successful. |
| ssp_err_t R_ANALOG_CONNECT_VersionGet | ( | ssp_version_t *const | p_version | ) |
Gets the API and code version. Implements analog_connect_api_t::versionGet().
| SSP_SUCCESS | Version information available in p_version. |
| SSP_ERR_ASSERTION | The parameter p_version is NULL. |
Return the version number