MTB CAT1 Peripheral driver library

General Description

Enumerations

enum  cy_en_tcpwm_trigselect_t {
  CY_TCPWM_INPUT_TR_START = 0x00U,
  CY_TCPWM_INPUT_TR_RELOAD_OR_INDEX = 0x01U,
  CY_TCPWM_INPUT_TR_STOP_OR_KILL = 0x02U,
  CY_TCPWM_INPUT_TR_COUNT = 0x03U,
  CY_TCPWM_INPUT_TR_INDEX_OR_SWAP = 0x04U,
  CY_TCPWM_INPUT_TR_CAPTURE0 = 0x04U,
  CY_TCPWM_INPUT_TR_CAPTURE1 = 0x05U
}
 TCPWM Input Triggers. More...
 
enum  cy_en_tcpwm_output_trigselect_t {
  CY_TCPWM_OUTPUT_TR_OVERFLOW = 0x00U,
  CY_TCPWM_OUTPUT_TR_UNDERFLOW = 0x01U,
  CY_TCPWM_OUTPUT_TR_TC_EVENT = 0x02U,
  CY_TCPWM_OUTPUT_TR_CC0_MATCH = 0x03U,
  CY_TCPWM_OUTPUT_TR_CC1_MATCH = 0x04U,
  CY_TCPWM_OUTPUT_TR_LINE_OUT = 0x05U,
  CY_TCPWM_OUTPUT_TR_CC0ORCC1_MATCH = 0x06U,
  CY_TCPWM_OUTPUT_TR_DISABLED = 0x07U
}
 TCPWM output Triggers. More...
 
enum  cy_en_tcpwm_status_t {
  CY_TCPWM_SUCCESS = 0x00U,
  CY_TCPWM_BAD_PARAM = CY_TCPWM_ID | CY_PDL_STATUS_ERROR | 0x01U,
  CY_TCPWM_UNSUPPORTED_FEATURE = CY_TCPWM_ID | CY_PDL_STATUS_ERROR | 0x02U
}
 TCPWM status definitions. More...
 
enum  cy_en_gf_depth_value_t {
  CY_GLITCH_FILTER_DEPTH_SUPPORT_VALUE_0 = 0UL,
  CY_GLITCH_FILTER_DEPTH_SUPPORT_VALUE_1 = 1UL,
  CY_GLITCH_FILTER_DEPTH_SUPPORT_VALUE_2 = 2UL,
  CY_GLITCH_FILTER_DEPTH_SUPPORT_VALUE_4 = 3UL,
  CY_GLITCH_FILTER_DEPTH_SUPPORT_VALUE_8 = 4UL,
  CY_GLITCH_FILTER_DEPTH_SUPPORT_VALUE_16 = 5UL,
  CY_GLITCH_FILTER_DEPTH_SUPPORT_VALUE_32 = 6UL,
  CY_GLITCH_FILTER_DEPTH_SUPPORT_VALUE_64 = 7UL,
  CY_GLITCH_FILTER_DEPTH_SUPPORT_VALUE_128 = 8UL,
  CY_GLITCH_FILTER_DEPTH_SUPPORT_VALUE_256 = 9UL,
  CY_GLITCH_FILTER_DEPTH_SUPPORT_VALUE_512 = 10UL
}
 Glitch filter depth support values. More...
 
enum  cy_en_copy_swap_config_t {
  CY_TCPWM_DISBALE_COPY_OR_SWAP = 0UL,
  CY_TCPWM_COPY_CAPTUREBUFFER_VALUE_TO_CAPTURE = 1UL,
  CY_TCPWM_SWAP_CAPTUREBUFFER_AND_CAPTURE_VALUE = 2UL
}
 Copy or Swap values for CC0, CC1, Period and DT when both reload and swap are enabled then CC0/CC1/PERIOD/DT values are swapped with CC_BUFF/CC1_BUFF/PERIOD_BUFF/DT_BUFF values respectively When only reload is enabled then CC_BUFF/CC1_BUFF/PERIOD_BUFF/DT_BUFF values are copied to CC0/CC1/PERIOD/DT respectively. More...
 

Enumeration Type Documentation

◆ cy_en_tcpwm_trigselect_t

TCPWM Input Triggers.

Enumerator
CY_TCPWM_INPUT_TR_START 

Start.

CY_TCPWM_INPUT_TR_RELOAD_OR_INDEX 

Reload/Index.

CY_TCPWM_INPUT_TR_STOP_OR_KILL 

Stop/Kill.

CY_TCPWM_INPUT_TR_COUNT 

Count.

CY_TCPWM_INPUT_TR_INDEX_OR_SWAP 

Index/Swap.

CY_TCPWM_INPUT_TR_CAPTURE0 

Capture 0.

CY_TCPWM_INPUT_TR_CAPTURE1 

Capture 1.

◆ cy_en_tcpwm_output_trigselect_t

TCPWM output Triggers.

Enumerator
CY_TCPWM_OUTPUT_TR_OVERFLOW 

Overflow Event.

CY_TCPWM_OUTPUT_TR_UNDERFLOW 

Underflow Event.

CY_TCPWM_OUTPUT_TR_TC_EVENT 

Terminal Count Event.

CY_TCPWM_OUTPUT_TR_CC0_MATCH 

Compare Match 0 Event.

CY_TCPWM_OUTPUT_TR_CC1_MATCH 

Compare Match 1 Event.

CY_TCPWM_OUTPUT_TR_LINE_OUT 

PWM Output Signal Line Out.

CY_TCPWM_OUTPUT_TR_CC0ORCC1_MATCH 

Compare Match 0 Event or Compare Match 1 Event.

CY_TCPWM_OUTPUT_TR_DISABLED 

Trigger Out Disabled.

◆ cy_en_tcpwm_status_t

TCPWM status definitions.

Enumerator
CY_TCPWM_SUCCESS 

Successful.

CY_TCPWM_BAD_PARAM 

One or more invalid parameters.

CY_TCPWM_UNSUPPORTED_FEATURE 

Feature Unsupported.

◆ cy_en_gf_depth_value_t

Glitch filter depth support values.

Enumerator
CY_GLITCH_FILTER_DEPTH_SUPPORT_VALUE_0 

GLitch filter depth value 0.

CY_GLITCH_FILTER_DEPTH_SUPPORT_VALUE_1 

GLitch filter depth value 1.

CY_GLITCH_FILTER_DEPTH_SUPPORT_VALUE_2 

GLitch filter depth value 2.

CY_GLITCH_FILTER_DEPTH_SUPPORT_VALUE_4 

GLitch filter depth value 4.

CY_GLITCH_FILTER_DEPTH_SUPPORT_VALUE_8 

GLitch filter depth value 8.

CY_GLITCH_FILTER_DEPTH_SUPPORT_VALUE_16 

GLitch filter depth value 16.

CY_GLITCH_FILTER_DEPTH_SUPPORT_VALUE_32 

GLitch filter depth value 32.

CY_GLITCH_FILTER_DEPTH_SUPPORT_VALUE_64 

GLitch filter depth value 64.

CY_GLITCH_FILTER_DEPTH_SUPPORT_VALUE_128 

GLitch filter depth value 128.

CY_GLITCH_FILTER_DEPTH_SUPPORT_VALUE_256 

GLitch filter depth value 256.

CY_GLITCH_FILTER_DEPTH_SUPPORT_VALUE_512 

GLitch filter depth value 512.

◆ cy_en_copy_swap_config_t

Copy or Swap values for CC0, CC1, Period and DT when both reload and swap are enabled then CC0/CC1/PERIOD/DT values are swapped with CC_BUFF/CC1_BUFF/PERIOD_BUFF/DT_BUFF values respectively When only reload is enabled then CC_BUFF/CC1_BUFF/PERIOD_BUFF/DT_BUFF values are copied to CC0/CC1/PERIOD/DT respectively.

There is no action when reload is disabled. Reload is enabled/disabled with the API's Cy_TCPWM_Block_EnableCompare0Swap, Cy_TCPWM_Block_EnableCompare1Swap, Cy_TCPWM_PWM_EnablePeriodSwap

Enumerator
CY_TCPWM_DISBALE_COPY_OR_SWAP 

Reload is disabled.

There is no copy or swap enabled.

CY_TCPWM_COPY_CAPTUREBUFFER_VALUE_TO_CAPTURE 

Copies the capture buffer value to the capture.

CY_TCPWM_SWAP_CAPTUREBUFFER_AND_CAPTURE_VALUE 

Values of capture buffer and capture are exchanged.