RTEMS 6.1-rc5
|
Data Structures | |
struct | _ewm_config |
Describes EWM clock source. More... | |
Variables | |
bool | _ewm_config::enableEwm |
bool | _ewm_config::enableEwmInput |
bool | _ewm_config::setInputAssertLogic |
bool | _ewm_config::enableInterrupt |
uint8_t | _ewm_config::compareLowValue |
uint8_t | _ewm_config::compareHighValue |
Driver version | |
enum | _ewm_interrupt_enable_t { kEWM_InterruptEnable = EWM_CTRL_INTEN_MASK } |
EWM interrupt configuration structure with default settings all disabled. More... | |
enum | _ewm_status_flags_t { kEWM_RunningFlag = EWM_CTRL_EWMEN_MASK } |
EWM status flags. More... | |
typedef struct _ewm_config | ewm_config_t |
Describes EWM clock source. | |
#define | FSL_EWM_DRIVER_VERSION (MAKE_VERSION(2, 0, 3)) |
EWM driver version 2.0.3. | |
EWM initialization and de-initialization | |
void | EWM_Init (EWM_Type *base, const ewm_config_t *config) |
Initializes the EWM peripheral. | |
void | EWM_Deinit (EWM_Type *base) |
Deinitializes the EWM peripheral. | |
void | EWM_GetDefaultConfig (ewm_config_t *config) |
Initializes the EWM configuration structure. | |
EWM functional Operation | |
void | EWM_Refresh (EWM_Type *base) |
Services the EWM. | |
typedef struct _ewm_config ewm_config_t |
Describes EWM clock source.
Data structure for EWM configuration.
This structure is used to configure the EWM.
enum _ewm_status_flags_t |
void EWM_Deinit | ( | EWM_Type * | base | ) |
Deinitializes the EWM peripheral.
This function is used to shut down the EWM.
base | EWM peripheral base address |
brief Deinitializes the EWM peripheral.
This function is used to shut down the EWM.
param base EWM peripheral base address
void EWM_GetDefaultConfig | ( | ewm_config_t * | config | ) |
Initializes the EWM configuration structure.
This function initializes the EWM configuration structure to default values. The default values are as follows.
config | Pointer to the EWM configuration structure. |
brief Initializes the EWM configuration structure.
This function initializes the EWM configuration structure to default values. The default values are as follows. code ewmConfig->enableEwm = true; ewmConfig->enableEwmInput = false; ewmConfig->setInputAssertLogic = false; ewmConfig->enableInterrupt = false; ewmConfig->ewm_lpo_clock_source_t = kEWM_LpoClockSource0; ewmConfig->prescaler = 0; ewmConfig->compareLowValue = 0; ewmConfig->compareHighValue = 0xFEU; endcode
param config Pointer to the EWM configuration structure. see ewm_config_t
void EWM_Init | ( | EWM_Type * | base, |
const ewm_config_t * | config | ||
) |
Initializes the EWM peripheral.
This function is used to initialize the EWM. After calling, the EWM runs immediately according to the configuration. Note that, except for the interrupt enable control bit, other control bits and registers are write once after a CPU reset. Modifying them more than once generates a bus transfer error.
This is an example.
base | EWM peripheral base address |
config | The configuration of the EWM |
brief Initializes the EWM peripheral.
This function is used to initialize the EWM. After calling, the EWM runs immediately according to the configuration. Note that, except for the interrupt enable control bit, other control bits and registers are write once after a CPU reset. Modifying them more than once generates a bus transfer error.
This is an example. code ewm_config_t config; EWM_GetDefaultConfig(&config); config.compareHighValue = 0xAAU; EWM_Init(ewm_base,&config); endcode
param base EWM peripheral base address param config The configuration of the EWM
void EWM_Refresh | ( | EWM_Type * | base | ) |
Services the EWM.
This function resets the EWM counter to zero.
base | EWM peripheral base address |
brief Services the EWM.
This function resets the EWM counter to zero.
param base EWM peripheral base address
uint8_t _ewm_config::compareHighValue |
Compare high-register value
uint8_t _ewm_config::compareLowValue |
Compare low-register value
bool _ewm_config::enableEwm |
Enable EWM module
bool _ewm_config::enableEwmInput |
Enable EWM_in input
bool _ewm_config::enableInterrupt |
Enable EWM interrupt
bool _ewm_config::setInputAssertLogic |
EWM_in signal assertion state