![]() |
MAX32520 Peripheral Driver API
Peripheral Driver API for the MAX32520
|
Modules | |
SMON_Registers | |
Data Structures | |
struct | mxc_smon_ext_cfg_t |
Enumerations | |
enum | mxc_smon_ext_sensor_t |
enum | mxc_smon_clk_divide_t |
enum | mxc_smon_freq_divide_t |
enum | mxc_smon_vtm_t |
enum | mxc_smon_temp_t |
enum | mxc_smon_interrupt_mode_t |
enum | mxc_smon_lowpower_mode_t |
enum | mxc_smon_busy_t |
Functions | |
void | MXC_SMON_Init (void) |
void | MXC_SMON_Shutdown (void) |
int | MXC_SMON_ExtSensorEnable (mxc_smon_ext_cfg_t *cfg, uint32_t delay) |
int | MXC_SMON_SetSensorFrequency (mxc_smon_ext_cfg_t *cfg) |
int | MXC_SMON_SetErrorCount (uint8_t errorCount) |
int | MXC_SMON_TempSensorEnable (mxc_smon_temp_t threshold, uint32_t delay) |
int | MXC_SMON_SetTempThreshold (mxc_smon_temp_t threshold) |
int | MXC_SMON_VoltageMonitorEnable (mxc_smon_vtm_t threshold, uint32_t delay) |
int | MXC_SMON_SetVTMThreshold (mxc_smon_vtm_t threshold) |
int | MXC_SMON_ActiveDieShieldEnable (uint32_t delay) |
int | MXC_SMON_SelfDestructByteEnable (mxc_smon_ext_cfg_t *cfg, uint32_t delay) |
void | MXC_SMON_EnablePUFTrimErase (void) |
void | MXC_SMON_DisablePUFTrimErase (void) |
int | MXC_SMON_DigitalFaultDetectorEnable (mxc_smon_interrupt_mode_t interruptMode, mxc_smon_lowpower_mode_t lowPowerMode, uint32_t delay) |
uint32_t | MXC_SMON_GetFlags (void) |
void | MXC_SMON_ClearFlags (uint32_t flags) |
void | MXC_SMON_ExtSensorLock (void) |
void | MXC_SMON_IntSensorLock (void) |
int | MXC_SMON_isBusy (mxc_smon_busy_t reg, uint32_t delay) |
struct mxc_smon_ext_cfg_t |
The information required to configure an external sensor.
enum mxc_smon_temp_t |
enum mxc_smon_vtm_t |
int MXC_SMON_ActiveDieShieldEnable | ( | uint32_t | delay | ) |
Enbale Active Die Shield Monitoring.
delay | timeout delay |
void MXC_SMON_ClearFlags | ( | uint32_t | flags | ) |
Clear flags set in Security Alarm Register.
flags | flags to clear from Security Alarm register |
int MXC_SMON_DigitalFaultDetectorEnable | ( | mxc_smon_interrupt_mode_t | interruptMode, |
mxc_smon_lowpower_mode_t | lowPowerMode, | ||
uint32_t | delay | ||
) |
Enbale Digital Fault Detector.
interruptMode | interrupt mode, mxc_smon_interrupt_mode_t |
lowPowerMode | low power mode, mxc_smon_lowpower_mode_t |
delay | timeout delay |
int MXC_SMON_ExtSensorEnable | ( | mxc_smon_ext_cfg_t * | cfg, |
uint32_t | delay | ||
) |
Enables desired External Sensor.
cfg | configuration for setting up external sensor |
delay | timeout delay |
uint32_t MXC_SMON_GetFlags | ( | void | ) |
Get Flags set in Security Alarm Register.
int MXC_SMON_isBusy | ( | mxc_smon_busy_t | reg, |
uint32_t | delay | ||
) |
Checks if the registers are busy before wirting to it.
reg | see mxc_smon_busy_t for registers |
delay | timeout delay |
int MXC_SMON_SelfDestructByteEnable | ( | mxc_smon_ext_cfg_t * | cfg, |
uint32_t | delay | ||
) |
Enable Self Destruct Byte on External Sensor 0.
cfg | configuration for setting up SDBE, mxc_smon_ext_cfg_t |
delay | timeout delay |
int MXC_SMON_SetErrorCount | ( | uint8_t | errorCount | ) |
Set number of acceptable errors for external sensor.
errorCount | Error count 0 - 31 |
int MXC_SMON_SetSensorFrequency | ( | mxc_smon_ext_cfg_t * | cfg | ) |
Set frequency for external frequency.
cfg | configuration for setting up external sensor |
int MXC_SMON_SetTempThreshold | ( | mxc_smon_temp_t | threshold | ) |
Set Temperature Threshold.
threshold | temperature threshold, mxc_smon_temp_t |
int MXC_SMON_SetVTMThreshold | ( | mxc_smon_vtm_t | threshold | ) |
Set Voltage Monitor Threshold.
threshold | voltage threshold, mxc_smon_vtm_t |
int MXC_SMON_TempSensorEnable | ( | mxc_smon_temp_t | threshold, |
uint32_t | delay | ||
) |
Enable Temperature Sensor.
threshold | temperatue threshold, mxc_smon_temp_t |
delay | timeout delay |
int MXC_SMON_VoltageMonitorEnable | ( | mxc_smon_vtm_t | threshold, |
uint32_t | delay | ||
) |
Enable Voltage Monitor.
threshold | voltage threshold, mxc_smon_vtm_t |
delay | timeout delay |