RTEMS 6.1-rc2
|
Data Structures | |
struct | _dcdc_config |
Configuration for DCDC. More... | |
struct | _dcdc_min_power_config |
Configuration for min power setting. More... | |
struct | _dcdc_detection_config |
Configuration for DCDC detection. More... | |
struct | _dcdc_loop_control_config |
Configuration for the loop control. More... | |
struct | _dcdc_internal_regulator_config |
Configuration for DCDC internal regulator. More... | |
struct | _dcdc_low_power_config |
Configuration for DCDC low power. More... | |
struct | _dcdc_setpoint_config |
DCDC configuration in set point mode. More... | |
Macros | |
#define | FSL_DCDC_DRIVER_VERSION (MAKE_VERSION(2, 1, 1)) |
DCDC driver version. | |
#define | STANDBY_MODE_VDD1P0_TARGET_VOLTAGE |
The array of VDD1P0 target voltage in standby mode. | |
#define | STANDBY_MODE_VDD1P8_TARGET_VOLTAGE |
The array of VDD1P8 target voltage in standby mode. | |
#define | BUCK_MODE_VDD1P0_TARGET_VOLTAGE |
The array of VDD1P0 target voltage in buck mode. | |
#define | BUCK_MODE_VDD1P8_TARGET_VOLTAGE |
The array of VDD1P8 target voltage in buck mode. | |
Typedefs | |
typedef enum _dcdc_control_mode | dcdc_control_mode_t |
DCDC control mode, including setpoint control mode and static control mode. | |
typedef enum _dcdc_trim_input_mode | dcdc_trim_input_mode_t |
DCDC trim input mode, including sample trim input and hold trim input. | |
typedef enum _dcdc_standby_mode_1P0_target_vol | dcdc_standby_mode_1P0_target_vol_t |
The enumeration VDD1P0's target voltage value in standby mode. | |
typedef enum _dcdc_standby_mode_1P8_target_vol | dcdc_standby_mode_1P8_target_vol_t |
The enumeration VDD1P8's target voltage value in standby mode. | |
typedef enum _dcdc_buck_mode_1P0_target_vol | dcdc_buck_mode_1P0_target_vol_t |
The enumeration VDD1P0's target voltage value in buck mode. | |
typedef enum _dcdc_buck_mode_1P8_target_vol | dcdc_buck_mode_1P8_target_vol_t |
The enumeration VDD1P8's target voltage value in buck mode. | |
typedef enum _dcdc_comparator_current_bias | dcdc_comparator_current_bias_t |
The current bias of low power comparator. | |
typedef enum _dcdc_peak_current_threshold | dcdc_peak_current_threshold_t |
The threshold if peak current detection. | |
typedef enum _dcdc_clock_source | dcdc_clock_source_t |
Oscillator clock option. | |
typedef enum _dcdc_voltage_output_sel | dcdc_voltage_output_sel_t |
Voltage output option. | |
typedef struct _dcdc_config | dcdc_config_t |
Configuration for DCDC. | |
typedef struct _dcdc_min_power_config | dcdc_min_power_config_t |
Configuration for min power setting. | |
typedef struct _dcdc_detection_config | dcdc_detection_config_t |
Configuration for DCDC detection. | |
typedef struct _dcdc_loop_control_config | dcdc_loop_control_config_t |
Configuration for the loop control. | |
typedef struct _dcdc_internal_regulator_config | dcdc_internal_regulator_config_t |
Configuration for DCDC internal regulator. | |
typedef struct _dcdc_low_power_config | dcdc_low_power_config_t |
Configuration for DCDC low power. | |
typedef struct _dcdc_setpoint_config | dcdc_setpoint_config_t |
DCDC configuration in set point mode. | |
Initialization and De-initialization Interfaces | |
void | DCDC_Init (DCDC_Type *base, const dcdc_config_t *config) |
Initializes the basic resource of DCDC module, such as control mode, etc. | |
void | DCDC_Deinit (DCDC_Type *base) |
De-initializes the DCDC module. | |
void | DCDC_GetDefaultConfig (dcdc_config_t *config) |
Gets the default setting for DCDC, such as control mode, etc. | |
Detection Related Inferfaces | |
void | DCDC_GetDefaultDetectionConfig (dcdc_detection_config_t *config) |
Gets the default setting for detection configuration. | |
void | DCDC_SetDetectionConfig (DCDC_Type *base, const dcdc_detection_config_t *config) |
Configures the DCDC detection. | |
DCDC Miscellaneous Inferfaces | |
void | DCDC_SetClockSource (DCDC_Type *base, dcdc_clock_source_t clockSource) |
Configures the DCDC clock source. | |
void | DCDC_GetDefaultLowPowerConfig (dcdc_low_power_config_t *config) |
Gets the default setting for low power configuration. | |
void | DCDC_SetLowPowerConfig (DCDC_Type *base, const dcdc_low_power_config_t *config) |
Configures the DCDC low power. | |
void | DCDC_GetDefaultLoopControlConfig (dcdc_loop_control_config_t *config) |
Gets the default setting for loop control configuration. | |
void | DCDC_SetLoopControlConfig (DCDC_Type *base, const dcdc_loop_control_config_t *config) |
Configures the DCDC loop control. | |
void | DCDC_SetMinPowerConfig (DCDC_Type *base, const dcdc_min_power_config_t *config) |
Configures for the min power. | |
void | DCDC_SetInternalRegulatorConfig (DCDC_Type *base, const dcdc_internal_regulator_config_t *config) |
Configures the DCDC internal regulator. | |
Setpoint Control Related Interfaces | |
void | DCDC_SetPointInit (DCDC_Type *base, const dcdc_setpoint_config_t *config) |
Initializes DCDC module when the control mode selected as setpoint mode. | |
Application Guideline Interfaces | |
void | DCDC_BootIntoDCM (DCDC_Type *base) |
Boots DCDC into DCM(discontinous conduction mode). | |
void | DCDC_BootIntoCCM (DCDC_Type *base) |
Boots DCDC into CCM(continous conduction mode). | |
#define BUCK_MODE_VDD1P0_TARGET_VOLTAGE |
The array of VDD1P0 target voltage in buck mode.
#define BUCK_MODE_VDD1P8_TARGET_VOLTAGE |
The array of VDD1P8 target voltage in buck mode.
#define FSL_DCDC_DRIVER_VERSION (MAKE_VERSION(2, 1, 1)) |
DCDC driver version.
Version 2.1.1.
#define STANDBY_MODE_VDD1P0_TARGET_VOLTAGE |
The array of VDD1P0 target voltage in standby mode.
#define STANDBY_MODE_VDD1P8_TARGET_VOLTAGE |
The array of VDD1P8 target voltage in standby mode.
The enumeration VDD1P0's target voltage value in buck mode.
The enumeration VDD1P8's target voltage value in buck mode.
enum _dcdc_clock_source |
Oscillator clock option.
The current bias of low power comparator.
enum _dcdc_control_mode |
The threshold if peak current detection.
enum _dcdc_setpoint_map |
System setpoints enumeration.
The enumeration VDD1P0's target voltage value in standby mode.
The enumeration VDD1P8's target voltage value in standby mode.
enum _dcdc_status_flags |
void DCDC_BootIntoCCM | ( | DCDC_Type * | base | ) |
Boots DCDC into CCM(continous conduction mode).
base | DCDC peripheral base address. |
brief Boots DCDC into CCM(continous conduction mode).
pwd_zcd=0x1; pwd_cmp_offset=0x0; dcdc_loopctrl_en_rcscale=0x3;
param base DCDC peripheral base address.
brief Boot DCDC into CCM(continous conduction mode).
pwd_zcd=0x1; pwd_cmp_offset=0x0; dcdc_loopctrl_en_rcscale=0x3;
param base DCDC peripheral base address.
void DCDC_BootIntoDCM | ( | DCDC_Type * | base | ) |
Boots DCDC into DCM(discontinous conduction mode).
base | DCDC peripheral base address. |
brief Boots DCDC into DCM(discontinous conduction mode).
pwd_zcd=0x0; DM_CTRL = 1'b1; pwd_cmp_offset=0x0; dcdc_loopctrl_en_rcscale=0x3 or 0x5; DCM_set_ctrl=1'b1;
param base DCDC peripheral base address.
brief Boot DCDC into DCM(discontinous conduction mode).
pwd_zcd=0x0; pwd_cmp_offset=0x0; dcdc_loopctrl_en_rcscale= 0x5; DCM_set_ctrl=1'b1;
param base DCDC peripheral base address.
void DCDC_Deinit | ( | DCDC_Type * | base | ) |
De-initializes the DCDC module.
base | DCDC peripheral base address. |
brief De-initializes the DCDC module.
param base DCDC peripheral base address.
brief Disable the access to DCDC registers.
param base DCDC peripheral base address.
void DCDC_GetDefaultConfig | ( | dcdc_config_t * | config | ) |
Gets the default setting for DCDC, such as control mode, etc.
This function initializes the user configuration structure to a default value. The default values are:
config | Pointer to configuration structure. See to dcdc_config_t. |
brief Gets the default setting for DCDC, such as control mode, etc.
This function initializes the user configuration structure to a default value. The default values are: code config->controlMode = kDCDC_StaticControl; config->trimInputMode = kDCDC_SampleTrimInput; config->enableDcdcTimeout = false; config->enableSwitchingConverterOutput = false; endcode
param config Pointer to configuration structure. See to dcdc_config_t.
void DCDC_GetDefaultDetectionConfig | ( | dcdc_detection_config_t * | config | ) |
Gets the default setting for detection configuration.
The default configuration are set according to responding registers' setting when powered on. They are:
config | Pointer to configuration structure. See to dcdc_detection_config_t. |
brief Gets the default setting for detection configuration.
The default configuration are set according to responding registers' setting when powered on. They are: code config->enableXtalokDetection = false; config->powerDownOverVoltageVdd1P8Detection = true; config->powerDownOverVoltageVdd1P0Detection = true; config->powerDownLowVoltageDetection = false; config->powerDownOverCurrentDetection = true; config->powerDownPeakCurrentDetection = true; config->powerDownZeroCrossDetection = true; config->PeakCurrentThreshold = kDCDC_PeakCurrentRunMode250mALPMode1P5A; endcode
param config Pointer to configuration structure. See to "dcdc_detection_config_t"
brief Get the default setting for detection configuration.
The default configuration are set according to responding registers' setting when powered on. They are: code config->enableXtalokDetection = false; config->powerDownOverVoltageDetection = true; config->powerDownLowVlotageDetection = false; config->powerDownOverCurrentDetection = true; config->powerDownPeakCurrentDetection = true; config->powerDownZeroCrossDetection = true; config->OverCurrentThreshold = kDCDC_OverCurrentThresholdAlt0; config->PeakCurrentThreshold = kDCDC_PeakCurrentThresholdAlt0; endcode
param config Pointer to configuration structure. See to "dcdc_detection_config_t"
void DCDC_GetDefaultLoopControlConfig | ( | dcdc_loop_control_config_t * | config | ) |
Gets the default setting for loop control configuration.
The default configuration are set according to responding registers' setting when powered on. They are:
config | Pointer to configuration structure. See to dcdc_loop_control_config_t. |
brief Gets the default setting for loop control configuration.
The default configuration are set according to responding registers' setting when powered on. They are: code config->enableCommonHysteresis = false; config->enableCommonThresholdDetection = false; config->enableInvertHysteresisSign = false; config->enableRCThresholdDetection = false; config->enableRCScaleCircuit = 0U; config->complementFeedForwardStep = 0U; config->controlParameterMagnitude = 2U; config->integralProportionalRatio = 2U; endcode
param config Pointer to configuration structure. See to "dcdc_loop_control_config_t"
brief Get the default setting for loop control configuration.
The default configuration are set according to responding registers' setting when powered on. They are: code config->enableCommonHysteresis = false; config->enableCommonThresholdDetection = false; config->enableInvertHysteresisSign = false; config->enableRCThresholdDetection = false; config->enableRCScaleCircuit = 0U; config->complementFeedForwardStep = 0U; endcode
param config Pointer to configuration structure. See to "dcdc_loop_control_config_t"
void DCDC_GetDefaultLowPowerConfig | ( | dcdc_low_power_config_t * | config | ) |
Gets the default setting for low power configuration.
The default configuration are set according to responding registers' setting when powered on. They are:
config | Pointer to configuration structure. See to dcdc_low_power_config_t. |
brief Gets the default setting for low power configuration.
The default configuration are set according to responding registers' setting when powered on. They are: code config->enableAdjustHystereticValue = false; endcode
param config Pointer to configuration structure. See to "dcdc_low_power_config_t"
brief Get the default setting for low power configuration.
The default configuration are set according to responding registers' setting when powered on. They are: code config->enableOverloadDetection = true; config->enableAdjustHystereticValue = false; config->countChargingTimePeriod = kDCDC_CountChargingTimePeriod8Cycle; config->countChargingTimeThreshold = kDCDC_CountChargingTimeThreshold32; endcode
param config Pointer to configuration structure. See to "dcdc_low_power_config_t"
void DCDC_Init | ( | DCDC_Type * | base, |
const dcdc_config_t * | config | ||
) |
Initializes the basic resource of DCDC module, such as control mode, etc.
base | DCDC peripheral base address. |
config | Pointer to the dcdc_config_t structure. |
brief Initializes the basic resource of DCDC module, such as control mode, etc.
param base DCDC peripheral base address. param config Pointer to the configuration structure.
void DCDC_SetClockSource | ( | DCDC_Type * | base, |
dcdc_clock_source_t | clockSource | ||
) |
Configures the DCDC clock source.
base | DCDC peripheral base address. |
clockSource | Clock source for DCDC. See to dcdc_clock_source_t. |
brief Configures the DCDC clock source.
param base DCDC peripheral base address. param clockSource Clock source for DCDC. See to "dcdc_clock_source_t".
brief Configure the DCDC clock source.
param base DCDC peripheral base address. param clockSource Clock source for DCDC. See to "dcdc_clock_source_t".
void DCDC_SetDetectionConfig | ( | DCDC_Type * | base, |
const dcdc_detection_config_t * | config | ||
) |
Configures the DCDC detection.
base | DCDC peripheral base address. |
config | Pointer to configuration structure. See to dcdc_detection_config_t. |
breif Configures the DCDC detection.
param base DCDC peripheral base address. param config Pointer to configuration structure. See to "dcdc_detection_config_t"
breif Configure the DCDC detection.
param base DCDC peripheral base address. param config Pointer to configuration structure. See to "dcdc_detection_config_t"
void DCDC_SetInternalRegulatorConfig | ( | DCDC_Type * | base, |
const dcdc_internal_regulator_config_t * | config | ||
) |
Configures the DCDC internal regulator.
base | DCDC peripheral base address. |
config | Pointer to configuration structure. See to dcdc_internal_regulator_config_t. |
brief Configures the DCDC internal regulator.
param base DCDC peripheral base address. param config Pointer to configuration structure. See to "dcdc_internal_regulator_config_t".
brief Configure the DCDC internal regulator.
param base DCDC peripheral base address. param config Pointer to configuration structure. See to "dcdc_internal_regulator_config_t".
void DCDC_SetLoopControlConfig | ( | DCDC_Type * | base, |
const dcdc_loop_control_config_t * | config | ||
) |
Configures the DCDC loop control.
base | DCDC peripheral base address. |
config | Pointer to configuration structure. See to dcdc_loop_control_config_t. |
brief Configures the DCDC loop control.
param base DCDC peripheral base address. param config Pointer to configuration structure. See to "dcdc_loop_control_config_t".
brief Configure the DCDC loop control.
param base DCDC peripheral base address. param config Pointer to configuration structure. See to "dcdc_loop_control_config_t".
void DCDC_SetLowPowerConfig | ( | DCDC_Type * | base, |
const dcdc_low_power_config_t * | config | ||
) |
Configures the DCDC low power.
base | DCDC peripheral base address. |
config | Pointer to configuration structure. See to dcdc_low_power_config_t. |
brief Configures the DCDC low power.
param base DCDC peripheral base address. param config Pointer to configuration structure. See to "dcdc_low_power_config_t".
brief Configure the DCDC low power.
param base DCDC peripheral base address. param config Pointer to configuration structure. See to "dcdc_low_power_config_t".
void DCDC_SetMinPowerConfig | ( | DCDC_Type * | base, |
const dcdc_min_power_config_t * | config | ||
) |
Configures for the min power.
base | DCDC peripheral base address. |
config | Pointer to configuration structure. See to dcdc_min_power_config_t. |
brief Configures for the min power.
param base DCDC peripheral base address. param config Pointer to configuration structure. See to "dcdc_min_power_config_t".
brief Configure for the min power.
param base DCDC peripheral base address. param config Pointer to configuration structure. See to "dcdc_min_power_config_t".
void DCDC_SetPointInit | ( | DCDC_Type * | base, |
const dcdc_setpoint_config_t * | config | ||
) |
Initializes DCDC module when the control mode selected as setpoint mode.
base | DCDC peripheral base address. |
config | The pointer to the structure dcdc_setpoint_config_t. |
brief Initializes DCDC module when the control mode selected as setpoint mode.
note The function should be invoked in the initial step to config the DCDC via setpoint control mode.
param base DCDC peripheral base address. param config The pointer to the structure dcdc_setpoint_config_t.