59 #if defined(__cplusplus)
114 return (value == 0U) ?
false :
true;
128 return (value == 0U) ?
false :
true;
215 #if defined(__cplusplus)
static void EWM_HAL_SetPrescaler(EWM_Type *const base, uint8_t value)
Set the Clock Prescaler Value. This register can be only written once after a CPU reset and it must b...
#define EWM_CTRL_INTEN_MASK
static uint8_t EWM_HAL_GetPrescaler(const EWM_Type *const base)
Get the Clock Prescaler Value.
static bool EWM_HAL_IsEnabled(const EWM_Type *const base)
Get the EWM enable bit.
ewm_in_assert_logic_t EWM_HAL_GetInputPinAssertLogic(const EWM_Type *const base)
Get the Input pin assert logic.
#define FEATURE_EWM_KEY_FIRST_BYTE
ewm_in_assert_logic_t
EWM input pin configuration Configures if the input pin is enabled and when is asserted Implements : ...
static void EWM_HAL_Refresh(EWM_Type *const base)
Refresh EWM. This method needs to be called within the window period specified by the Compare Low and...
static uint8_t EWM_HAL_GetCompareHigh(const EWM_Type *const base)
Get the Compare High Value.
static bool EWM_HAL_IsInterruptEnabled(const EWM_Type *const base)
Get the Interrupt Enable bit.
__IO uint8_t CLKPRESCALER
static void EWM_HAL_SetCompareLow(EWM_Type *const base, uint8_t value)
Set the Compare Low Value. This register can be only written once after a CPU reset. The user must make sure that the Compare High is greater than Compare Low value.
#define EWM_CTRL_EWMEN_MASK
void EWM_HAL_Init(EWM_Type *const base, bool interruptEnable, ewm_in_assert_logic_t assertLogic, bool enable)
Init EWM. This method configures the EWM instance Control Register fields such as interrupt enable...
#define EWM_CTRL_EWMEN_SHIFT
static uint8_t EWM_HAL_GetCompareLow(const EWM_Type *const base)
Get the Compare Low Value.
static uint8_t EWM_HAL_GetControl(const EWM_Type *const base)
Get the Control register Value.
#define FEATURE_EWM_KEY_SECOND_BYTE
#define EWM_CTRL_INTEN_SHIFT
static void EWM_HAL_SetCompareHigh(EWM_Type *const base, uint8_t value)
Set the Compare High Value. This register can be only written once after a CPU reset. The user must make sure that the Compare High is greater than Compare Low value Note: The maximum Compare High value is 0xFE.