RTEMS 6.1-rc2
|
Data Structures | |
struct | _ssarc_descriptor_config |
The configuration of descriptor. More... | |
struct | _ssarc_group_config |
The configuration of the group. More... | |
Driver version | |
enum | _ssarc_interrupt_status_flags { kSSARC_AddressErrorFlag = SSARC_LP_INT_STATUS_ADDR_ERR_MASK , kSSARC_AHBErrorFlag = SSARC_LP_INT_STATUS_AHB_ERR_MASK , kSSARC_SoftwareRequestDoneFlag = SSARC_LP_INT_STATUS_SW_REQ_DONE_MASK , kSSARC_TimeoutFlag = SSARC_LP_INT_STATUS_TIMEOUT_MASK , kSSARC_GroupConflictFlag = SSARC_LP_INT_STATUS_GROUP_CONFLICT_MASK } |
The enumeration of ssarc status flags. More... | |
enum | _ssarc_descriptor_register_size { kSSARC_DescriptorRegister8bitWidth = 0x0U , kSSARC_DescriptorRegister16bitWidth = 0x1U , kSSARC_DescriptorRegister32bitWidth = 0x2U } |
The size of the register to be saved/restored. More... | |
enum | _ssarc_descriptor_operation { kSSARC_SaveDisableRestoreDisable = 0x0U , kSSARC_SaveEnableRestoreDisable = SSARC_HP_SRAM2_SV_EN_MASK , kSSARC_SaveDisableRestoreEnable = SSARC_HP_SRAM2_RT_EN_MASK , kSSARC_SaveEnableRestoreEnable = (SSARC_HP_SRAM2_RT_EN_MASK | SSARC_HP_SRAM2_SV_EN_MASK) } |
The operation of the descriptor. More... | |
enum | _ssarc_descriptor_type { kSSARC_ReadValueWriteBack = 0x00U , kSSARC_WriteFixedValue = 0x01U , kSSARC_RMWOr = 0x02U , kSSARC_RMWAnd = 0x03U , kSSARC_DelayCycles = 0x04U , kSSARC_Polling0 = 0x05U , kSSARC_Polling1 = 0x06U } |
The type of operation. More... | |
enum | _ssarc_save_restore_order { kSSARC_ProcessFromStartToEnd = 0U , kSSARC_ProcessFromEndToStart = 1U } |
The order of the restore/save operation. More... | |
enum | _ssarc_software_trigger_mode { kSSARC_TriggerSaveRequest = SSARC_LP_DESC_CTRL1_SW_TRIG_SV_MASK , kSSARC_TriggerRestoreRequest = SSARC_LP_DESC_CTRL1_SW_TRIG_RT_MASK } |
Software trigger mode. More... | |
typedef enum _ssarc_descriptor_register_size | ssarc_descriptor_register_size_t |
The size of the register to be saved/restored. | |
typedef enum _ssarc_descriptor_operation | ssarc_descriptor_operation_t |
The operation of the descriptor. | |
typedef enum _ssarc_descriptor_type | ssarc_descriptor_type_t |
The type of operation. | |
typedef enum _ssarc_save_restore_order | ssarc_save_restore_order_t |
The order of the restore/save operation. | |
typedef enum _ssarc_software_trigger_mode | ssarc_software_trigger_mode_t |
Software trigger mode. | |
typedef struct _ssarc_descriptor_config | ssarc_descriptor_config_t |
The configuration of descriptor. | |
typedef struct _ssarc_group_config | ssarc_group_config_t |
The configuration of the group. | |
#define | FSL_SSARC_DRIVER_VERSION (MAKE_VERSION(2, 1, 0)) |
SSARC driver version 2.1.0. | |
#define | SSARC_INT_STATUS_ALL |
Descriptor related APIs. | |
void | SSARC_SetDescriptorConfig (SSARC_HP_Type *base, uint32_t index, const ssarc_descriptor_config_t *config) |
Sets the configuration of the descriptor. | |
Group Related APIs | |
void | SSARC_GroupInit (SSARC_LP_Type *base, uint8_t groupID, const ssarc_group_config_t *config) |
Inits the selected group. | |
void | SSARC_TriggerSoftwareRequest (SSARC_LP_Type *base, uint8_t groupID, ssarc_software_trigger_mode_t mode) |
Triggers software request. | |
#define SSARC_INT_STATUS_ALL |
The operation of the descriptor.
The size of the register to be saved/restored.
The type of operation.
The enumeration of ssarc status flags.
void SSARC_GroupInit | ( | SSARC_LP_Type * | base, |
uint8_t | groupID, | ||
const ssarc_group_config_t * | config | ||
) |
Inits the selected group.
base | SSARC_LP peripheral base address. |
groupID | The index of the group. Range from 0 to 15. |
config | Pointer to the structure ssarc_group_config_t. Please refer to ssarc_group_config_t for details. |
brief Init the selected group.
note For the groups with the same save priority or restore priority, the save/restore operation runs in the group order.
param base SSARC_LP peripheral base address. param groupID The index of the group. Range from 0 to 15. param config Pointer to the structure ssarc_group_config_t. Please refer to ssarc_group_config_t for details.
void SSARC_SetDescriptorConfig | ( | SSARC_HP_Type * | base, |
uint32_t | index, | ||
const ssarc_descriptor_config_t * | config | ||
) |
Sets the configuration of the descriptor.
base | SSARC_HP peripheral base address. |
index | The index of descriptor. Range from 0 to 1023. |
config | Pointer to the structure ssarc_descriptor_config_t. Please refer to ssarc_descriptor_config_t for details. |
brief Sets the configuration of the descriptor.
param base SSARC_HP peripheral base address. param index The index of descriptor. Range from 0 to 1023. param config Pointer to the structure ssarc_descriptor_config_t. Please refer to ssarc_descriptor_config_t for details.
void SSARC_TriggerSoftwareRequest | ( | SSARC_LP_Type * | base, |
uint8_t | groupID, | ||
ssarc_software_trigger_mode_t | mode | ||
) |
Triggers software request.
base | SSARC_LP peripheral base address. |
groupID | The index of the group. Range from 0 to 15. |
mode | Software trigger mode. Please refer to ssarc_software_trigger_mode_t for details. |
brief Triggers software request.
note Each group allows software to trigger the save/restore operation without getting the request from basic power controller.
param base SSARC_LP peripheral base address. param groupID The index of the group. Range from 0 to 15. param mode. Software trigger mode. Please refer to ssarc_software_trigger_mode_t for details.