/* 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_SetDescriptorConfig(SSARC_HP_Type *base, uint32_t index, const ssarc_descriptor_config_t *config)
/* 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_SetDescriptorConfig(SSARC_HP_Type *base, uint32_t index, const ssarc_descriptor_config_t *config)
{
    assert(config != NULL);
    uint32_t temp32 = 0UL;
    base->DESC[index].SRAM0 = config->address;
    temp32 = SSARC_HP_SRAM2_TYPE(config->type) | SSARC_HP_SRAM2_SIZE(config->size);
    temp32 |= (uint32_t)(config->operation);
    base->DESC[index].SRAM2 = temp32;
    if (config->type != kSSARC_ReadValueWriteBack)
    {
        base->DESC[index].SRAM1 = config->data;
    }
}