|
| void | AC_Initialize (void) |
| | Initializes the AC peripheral.
|
| |
| void | AC_Enable (void) |
| | Enables the AC peripheral.
|
| |
| void | AC_Disable (void) |
| | Disables the AC peripheral.
|
| |
| void | AC_SoftwareReset (void) |
| | Performs a software reset of the AC peripheral.
|
| |
| bool | AC_EnableChannel (uint8_t channel_number) |
| | Enables the specified AC channel.
|
| |
| bool | AC_DisableChannel (uint8_t channel_number) |
| | Disables the specified AC channel.
|
| |
| bool | AC_SetRunInStandby (uint8_t channel_number, bool enable) |
| | Sets the run-in-standby mode for the specified channel.
|
| |
| bool | AC_SelectChannelInputs (uint8_t channel_number, uint32_t pos_input, uint32_t neg_input) |
| | Selects the positive and negative inputs for the specified channel.
|
| |
| bool | AC_SetVddScaler (uint8_t channel_number, uint8_t vdd_scaler_value) |
| | Sets the VDD scaler value for the specified channel.
|
| |
| bool | AC_SetReference (uint8_t channel_number, uint32_t reference) |
| | Sets the reference selection for the specified channel.
|
| |
| bool | AC_SetHysteresis (uint8_t channel_number, bool enable) |
| | Enables or disables hysteresis for the specified channel.
|
| |
| bool | AC_EnableOutput (uint8_t channel_number, bool enable) |
| | Enables or disables the output for the specified channel.
|
| |
| bool | AC_GetStatus (uint8_t channel_number) |
| | Gets the status of the specified channel.
|
| |
| bool | AC_EnableInterrupt (uint8_t channel_number, uint32_t interrupt_mode) |
| | Enables interrupt for the specified channel.
|
| |
| bool | AC_DisableInterrupt (uint8_t channel_number) |
| | Disables interrupt for the specified channel.
|
| |
| bool | AC_ClearInterruptFlag (uint8_t channel_number) |
| | Clears the interrupt flag for the specified channel.
|
| |
| bool | AC_EnableWindowInterrupt (uint32_t window_interrupt_mode) |
| | Enables window interrupt with the specified mode.
|
| |
| void | AC_DisableWindowInterrupt (void) |
| | Disables window interrupt.
|
| |
| void | AC_ClearWindowInterruptFlag (void) |
| | Clears the window interrupt flag.
|
| |
| void | AC_EnableWindowMode (void) |
| | Enables window mode.
|
| |
| void | AC_DisableWindowMode (void) |
| | Disables window mode.
|
| |
| void | AC_CallbackRegister (AC_CALLBACK callback) |
| | Register a callback handler for AC interrupts.
|
| |
#include <stdint.h>
#include <stdbool.h>
int32_t configure_ac(void)
{
const uint8_t AC_CHANNEL_0 = 0U;
const uint8_t AC_VDDSCALER_32 = 32U;
return 0;
}
void AC_Initialize(void)
Initializes the AC peripheral.
bool AC_EnableInterrupt(uint8_t channel_number, uint32_t interrupt_mode)
Enables interrupt for the specified channel.
bool AC_SetReference(uint8_t channel_number, uint32_t reference)
Sets the reference selection for the specified channel.
bool AC_SelectChannelInputs(uint8_t channel_number, uint32_t pos_input, uint32_t neg_input)
Selects the positive and negative inputs for the specified channel.
bool AC_SetHysteresis(uint8_t channel_number, bool enable)
Enables or disables hysteresis for the specified channel.
bool AC_SetVddScaler(uint8_t channel_number, uint8_t vdd_scaler_value)
Sets the VDD scaler value for the specified channel.
bool AC_EnableChannel(uint8_t channel_number)
Enables the specified AC channel.
void AC_Enable(void)
Enables the AC peripheral.