Functions | |
__STATIC_INLINE void | Cy_TCPWM_MOTIF_Update_HLUT (TCPWM_MOTIF_GRP_MOTIF_Type *base, cy_stc_tcpwm_motif_hlut_t *hlut_config) |
Update look up table contents for Hall Sensor in LUT mode. More... | |
__STATIC_INLINE void | Cy_TCPWM_MOTIF_Configure_Debounce_Bypass (TCPWM_MOTIF_GRP_MOTIF_Type *base, bool bypass_sd) |
Enable/Disable HALL Sensor debounce stage bypass. More... | |
__STATIC_INLINE void | Cy_TCPWM_MOTIF_Update_Hall_Pattern (TCPWM_MOTIF_GRP_MOTIF_Type *base) |
Update Hall pattern immediately. More... | |
__STATIC_INLINE void | Cy_TCPWM_MOTIF_HALL_Previous_Pattern_Compare (TCPWM_MOTIF_GRP_MOTIF_Type *base, bool pp_compare) |
Enable/Disable HALL Previous Pattern compare. More... | |
__STATIC_INLINE void | Cy_TCPWM_MOTIF_Set_HALL_Pattern (TCPWM_MOTIF_GRP_MOTIF_Type *base, uint8_t current_pattern, uint8_t expected_pattern, uint8_t previous_pattern) |
Sets the Hall patterns: Current, Expected and Previous patterns. More... | |
__STATIC_INLINE void | Cy_TCPWM_MOTIF_Hall_Input_Sample_Trigger (TCPWM_MOTIF_GRP_MOTIF_Type *base) |
The application software can issue/request a sample of the Hall Inputs. More... | |
__STATIC_INLINE void | Cy_TCPWM_MOTIF_HALL_Output_Config (TCPWM_MOTIF_GRP_MOTIF_Type *base, cy_stc_hall_output_config_t *output_config) |
Configures the output pins for each of the hall event. More... | |
__STATIC_INLINE uint32_t | Cy_TCPWM_MOTIF_HALL_Get_Output_Modulation_Value (TCPWM_MOTIF_GRP_MOTIF_Type *base) |
Returns the output modulation value. More... | |
__STATIC_INLINE void | Cy_TCPWM_MOTIF_HALL_Sample_Trigger_EdgeSel (TCPWM_MOTIF_GRP_MOTIF_Type *base, cy_en_trigger_edge_selection_t edge_select) |
Select the active edge to trigger a sample of the Hall inputs. More... | |
cy_en_tcpwm_status_t | Cy_TCPWM_MOTIF_Hall_Sensor_Init (TCPWM_MOTIF_GRP_MOTIF_Type *base, cy_stc_tcpwm_motif_hall_sensor_config_t const *config) |
MOTIF module initialization in Hall sensor Mode. More... | |
__STATIC_INLINE void Cy_TCPWM_MOTIF_Update_HLUT | ( | TCPWM_MOTIF_GRP_MOTIF_Type * | base, |
cy_stc_tcpwm_motif_hlut_t * | hlut_config | ||
) |
Update look up table contents for Hall Sensor in LUT mode.
base | The pointer to the TCPWM_MOTIF instance address. |
hlut_config | HALL Look Up Table Configuration cy_stc_tcpwm_motif_hlut_t |
__STATIC_INLINE void Cy_TCPWM_MOTIF_Configure_Debounce_Bypass | ( | TCPWM_MOTIF_GRP_MOTIF_Type * | base, |
bool | bypass_sd | ||
) |
Enable/Disable HALL Sensor debounce stage bypass.
base | The pointer to the TCPWM_MOTIF instance address. |
bypass_sd | Passing true will disable HALL Sensor sample delay. hall inputs are immediately sample after the low pass filter with out delay. |
__STATIC_INLINE void Cy_TCPWM_MOTIF_Update_Hall_Pattern | ( | TCPWM_MOTIF_GRP_MOTIF_Type * | base | ) |
Update Hall pattern immediately.
base | The pointer to the TCPWM_MOTIF instance address. |
__STATIC_INLINE void Cy_TCPWM_MOTIF_HALL_Previous_Pattern_Compare | ( | TCPWM_MOTIF_GRP_MOTIF_Type * | base, |
bool | pp_compare | ||
) |
Enable/Disable HALL Previous Pattern compare.
base | The pointer to the TCPWM_MOTIF instance address. |
pp_compare | Previous Pattern Compare enable or disable |
__STATIC_INLINE void Cy_TCPWM_MOTIF_Set_HALL_Pattern | ( | TCPWM_MOTIF_GRP_MOTIF_Type * | base, |
uint8_t | current_pattern, | ||
uint8_t | expected_pattern, | ||
uint8_t | previous_pattern | ||
) |
Sets the Hall patterns: Current, Expected and Previous patterns.
base | The pointer to the TCPWM_MOTIF instance address. |
current_pattern | Current Pattern |
expected_pattern | Expected Pattern |
previous_pattern | Previous Pattern |
__STATIC_INLINE void Cy_TCPWM_MOTIF_Hall_Input_Sample_Trigger | ( | TCPWM_MOTIF_GRP_MOTIF_Type * | base | ) |
The application software can issue/request a sample of the Hall Inputs.
base | The pointer to the TCPWM_MOTIF instance address. |
__STATIC_INLINE void Cy_TCPWM_MOTIF_HALL_Output_Config | ( | TCPWM_MOTIF_GRP_MOTIF_Type * | base, |
cy_stc_hall_output_config_t * | output_config | ||
) |
Configures the output pins for each of the hall event.
base | The pointer to the TCPWM_MOTIF instance address. |
output_config | HALL Output Configuration cy_stc_hall_output_config_t |
__STATIC_INLINE uint32_t Cy_TCPWM_MOTIF_HALL_Get_Output_Modulation_Value | ( | TCPWM_MOTIF_GRP_MOTIF_Type * | base | ) |
Returns the output modulation value.
base | The pointer to the TCPWM_MOTIF instance address. |
__STATIC_INLINE void Cy_TCPWM_MOTIF_HALL_Sample_Trigger_EdgeSel | ( | TCPWM_MOTIF_GRP_MOTIF_Type * | base, |
cy_en_trigger_edge_selection_t | edge_select | ||
) |
Select the active edge to trigger a sample of the Hall inputs.
base | The pointer to the TCPWM_MOTIF instance address. |
edge_select | Edge to trigger a sample of the Hall inputs cy_en_trigger_edge_selection_t. |
cy_en_tcpwm_status_t Cy_TCPWM_MOTIF_Hall_Sensor_Init | ( | TCPWM_MOTIF_GRP_MOTIF_Type * | base, |
cy_stc_tcpwm_motif_hall_sensor_config_t const * | config | ||
) |
MOTIF module initialization in Hall sensor Mode.
base | The pointer to the TCPWM_MOTIF instance address. |
config | Hall sensor configuration cy_stc_tcpwm_motif_hall_sensor_config_t |