Hardware Abstraction Layer (HAL)

General Description

Trigger connections for psoc4000s.

Macros

#define CYHAL_TRIGGER_CPUSS_ZERO   (CYHAL_TRIGGER_CPUSS_ZERO_LEVEL)
 Deprecated defines for signals that can be either level or edge. More...
 
#define CYHAL_TRIGGER_LPCOMP_COMP_OUT0   (CYHAL_TRIGGER_LPCOMP_COMP_OUT0_LEVEL)
 Legacy define. Instead, use the explicit _LEVEL or _EDGE version.
 
#define CYHAL_TRIGGER_LPCOMP_COMP_OUT1   (CYHAL_TRIGGER_LPCOMP_COMP_OUT1_LEVEL)
 Legacy define. Instead, use the explicit _LEVEL or _EDGE version.
 
#define CYHAL_TRIGGER_TCPWM_TR_COMPARE_MATCH0   (CYHAL_TRIGGER_TCPWM_TR_COMPARE_MATCH0_LEVEL)
 Legacy define. Instead, use the explicit _LEVEL or _EDGE version.
 
#define CYHAL_TRIGGER_TCPWM_TR_COMPARE_MATCH1   (CYHAL_TRIGGER_TCPWM_TR_COMPARE_MATCH1_LEVEL)
 Legacy define. Instead, use the explicit _LEVEL or _EDGE version.
 
#define CYHAL_TRIGGER_TCPWM_TR_COMPARE_MATCH2   (CYHAL_TRIGGER_TCPWM_TR_COMPARE_MATCH2_LEVEL)
 Legacy define. Instead, use the explicit _LEVEL or _EDGE version.
 
#define CYHAL_TRIGGER_TCPWM_TR_COMPARE_MATCH3   (CYHAL_TRIGGER_TCPWM_TR_COMPARE_MATCH3_LEVEL)
 Legacy define. Instead, use the explicit _LEVEL or _EDGE version.
 
#define CYHAL_TRIGGER_TCPWM_TR_COMPARE_MATCH4   (CYHAL_TRIGGER_TCPWM_TR_COMPARE_MATCH4_LEVEL)
 Legacy define. Instead, use the explicit _LEVEL or _EDGE version.
 
#define CYHAL_TRIGGER_TCPWM_TR_OVERFLOW0   (CYHAL_TRIGGER_TCPWM_TR_OVERFLOW0_LEVEL)
 Legacy define. Instead, use the explicit _LEVEL or _EDGE version.
 
#define CYHAL_TRIGGER_TCPWM_TR_OVERFLOW1   (CYHAL_TRIGGER_TCPWM_TR_OVERFLOW1_LEVEL)
 Legacy define. Instead, use the explicit _LEVEL or _EDGE version.
 
#define CYHAL_TRIGGER_TCPWM_TR_OVERFLOW2   (CYHAL_TRIGGER_TCPWM_TR_OVERFLOW2_LEVEL)
 Legacy define. Instead, use the explicit _LEVEL or _EDGE version.
 
#define CYHAL_TRIGGER_TCPWM_TR_OVERFLOW3   (CYHAL_TRIGGER_TCPWM_TR_OVERFLOW3_LEVEL)
 Legacy define. Instead, use the explicit _LEVEL or _EDGE version.
 
#define CYHAL_TRIGGER_TCPWM_TR_OVERFLOW4   (CYHAL_TRIGGER_TCPWM_TR_OVERFLOW4_LEVEL)
 Legacy define. Instead, use the explicit _LEVEL or _EDGE version.
 
#define CYHAL_TRIGGER_TCPWM_TR_UNDERFLOW0   (CYHAL_TRIGGER_TCPWM_TR_UNDERFLOW0_LEVEL)
 Legacy define. Instead, use the explicit _LEVEL or _EDGE version.
 
#define CYHAL_TRIGGER_TCPWM_TR_UNDERFLOW1   (CYHAL_TRIGGER_TCPWM_TR_UNDERFLOW1_LEVEL)
 Legacy define. Instead, use the explicit _LEVEL or _EDGE version.
 
#define CYHAL_TRIGGER_TCPWM_TR_UNDERFLOW2   (CYHAL_TRIGGER_TCPWM_TR_UNDERFLOW2_LEVEL)
 Legacy define. Instead, use the explicit _LEVEL or _EDGE version.
 
#define CYHAL_TRIGGER_TCPWM_TR_UNDERFLOW3   (CYHAL_TRIGGER_TCPWM_TR_UNDERFLOW3_LEVEL)
 Legacy define. Instead, use the explicit _LEVEL or _EDGE version.
 
#define CYHAL_TRIGGER_TCPWM_TR_UNDERFLOW4   (CYHAL_TRIGGER_TCPWM_TR_UNDERFLOW4_LEVEL)
 Legacy define. Instead, use the explicit _LEVEL or _EDGE version.
 

Typedefs

typedef cyhal_trigger_source_psoc4000s_t cyhal_source_t
 Typedef from device family specific trigger source to generic trigger source.
 
typedef cyhal_trigger_dest_psoc4000s_t cyhal_dest_t
 Typedef from device family specific trigger dest to generic trigger dest.
 

Enumerations

enum  cyhal_trigger_source_psoc4000s_t {
  CYHAL_TRIGGER_CPUSS_ZERO_EDGE = _CYHAL_TRIGGER_CREATE_SOURCE(_CYHAL_TRIGGER_CPUSS_ZERO, CYHAL_SIGNAL_TYPE_EDGE),
  CYHAL_TRIGGER_CPUSS_ZERO_LEVEL = _CYHAL_TRIGGER_CREATE_SOURCE(_CYHAL_TRIGGER_CPUSS_ZERO, CYHAL_SIGNAL_TYPE_LEVEL),
  CYHAL_TRIGGER_LPCOMP_COMP_OUT0_EDGE = _CYHAL_TRIGGER_CREATE_SOURCE(_CYHAL_TRIGGER_LPCOMP_COMP_OUT0, CYHAL_SIGNAL_TYPE_EDGE),
  CYHAL_TRIGGER_LPCOMP_COMP_OUT0_LEVEL = _CYHAL_TRIGGER_CREATE_SOURCE(_CYHAL_TRIGGER_LPCOMP_COMP_OUT0, CYHAL_SIGNAL_TYPE_LEVEL),
  CYHAL_TRIGGER_LPCOMP_COMP_OUT1_EDGE = _CYHAL_TRIGGER_CREATE_SOURCE(_CYHAL_TRIGGER_LPCOMP_COMP_OUT1, CYHAL_SIGNAL_TYPE_EDGE),
  CYHAL_TRIGGER_LPCOMP_COMP_OUT1_LEVEL = _CYHAL_TRIGGER_CREATE_SOURCE(_CYHAL_TRIGGER_LPCOMP_COMP_OUT1, CYHAL_SIGNAL_TYPE_LEVEL),
  CYHAL_TRIGGER_TCPWM_TR_COMPARE_MATCH0_EDGE = _CYHAL_TRIGGER_CREATE_SOURCE(_CYHAL_TRIGGER_TCPWM_TR_COMPARE_MATCH0, CYHAL_SIGNAL_TYPE_EDGE),
  CYHAL_TRIGGER_TCPWM_TR_COMPARE_MATCH0_LEVEL = _CYHAL_TRIGGER_CREATE_SOURCE(_CYHAL_TRIGGER_TCPWM_TR_COMPARE_MATCH0, CYHAL_SIGNAL_TYPE_LEVEL),
  CYHAL_TRIGGER_TCPWM_TR_COMPARE_MATCH1_EDGE = _CYHAL_TRIGGER_CREATE_SOURCE(_CYHAL_TRIGGER_TCPWM_TR_COMPARE_MATCH1, CYHAL_SIGNAL_TYPE_EDGE),
  CYHAL_TRIGGER_TCPWM_TR_COMPARE_MATCH1_LEVEL = _CYHAL_TRIGGER_CREATE_SOURCE(_CYHAL_TRIGGER_TCPWM_TR_COMPARE_MATCH1, CYHAL_SIGNAL_TYPE_LEVEL),
  CYHAL_TRIGGER_TCPWM_TR_COMPARE_MATCH2_EDGE = _CYHAL_TRIGGER_CREATE_SOURCE(_CYHAL_TRIGGER_TCPWM_TR_COMPARE_MATCH2, CYHAL_SIGNAL_TYPE_EDGE),
  CYHAL_TRIGGER_TCPWM_TR_COMPARE_MATCH2_LEVEL = _CYHAL_TRIGGER_CREATE_SOURCE(_CYHAL_TRIGGER_TCPWM_TR_COMPARE_MATCH2, CYHAL_SIGNAL_TYPE_LEVEL),
  CYHAL_TRIGGER_TCPWM_TR_COMPARE_MATCH3_EDGE = _CYHAL_TRIGGER_CREATE_SOURCE(_CYHAL_TRIGGER_TCPWM_TR_COMPARE_MATCH3, CYHAL_SIGNAL_TYPE_EDGE),
  CYHAL_TRIGGER_TCPWM_TR_COMPARE_MATCH3_LEVEL = _CYHAL_TRIGGER_CREATE_SOURCE(_CYHAL_TRIGGER_TCPWM_TR_COMPARE_MATCH3, CYHAL_SIGNAL_TYPE_LEVEL),
  CYHAL_TRIGGER_TCPWM_TR_COMPARE_MATCH4_EDGE = _CYHAL_TRIGGER_CREATE_SOURCE(_CYHAL_TRIGGER_TCPWM_TR_COMPARE_MATCH4, CYHAL_SIGNAL_TYPE_EDGE),
  CYHAL_TRIGGER_TCPWM_TR_COMPARE_MATCH4_LEVEL = _CYHAL_TRIGGER_CREATE_SOURCE(_CYHAL_TRIGGER_TCPWM_TR_COMPARE_MATCH4, CYHAL_SIGNAL_TYPE_LEVEL),
  CYHAL_TRIGGER_TCPWM_TR_OVERFLOW0_EDGE = _CYHAL_TRIGGER_CREATE_SOURCE(_CYHAL_TRIGGER_TCPWM_TR_OVERFLOW0, CYHAL_SIGNAL_TYPE_EDGE),
  CYHAL_TRIGGER_TCPWM_TR_OVERFLOW0_LEVEL = _CYHAL_TRIGGER_CREATE_SOURCE(_CYHAL_TRIGGER_TCPWM_TR_OVERFLOW0, CYHAL_SIGNAL_TYPE_LEVEL),
  CYHAL_TRIGGER_TCPWM_TR_OVERFLOW1_EDGE = _CYHAL_TRIGGER_CREATE_SOURCE(_CYHAL_TRIGGER_TCPWM_TR_OVERFLOW1, CYHAL_SIGNAL_TYPE_EDGE),
  CYHAL_TRIGGER_TCPWM_TR_OVERFLOW1_LEVEL = _CYHAL_TRIGGER_CREATE_SOURCE(_CYHAL_TRIGGER_TCPWM_TR_OVERFLOW1, CYHAL_SIGNAL_TYPE_LEVEL),
  CYHAL_TRIGGER_TCPWM_TR_OVERFLOW2_EDGE = _CYHAL_TRIGGER_CREATE_SOURCE(_CYHAL_TRIGGER_TCPWM_TR_OVERFLOW2, CYHAL_SIGNAL_TYPE_EDGE),
  CYHAL_TRIGGER_TCPWM_TR_OVERFLOW2_LEVEL = _CYHAL_TRIGGER_CREATE_SOURCE(_CYHAL_TRIGGER_TCPWM_TR_OVERFLOW2, CYHAL_SIGNAL_TYPE_LEVEL),
  CYHAL_TRIGGER_TCPWM_TR_OVERFLOW3_EDGE = _CYHAL_TRIGGER_CREATE_SOURCE(_CYHAL_TRIGGER_TCPWM_TR_OVERFLOW3, CYHAL_SIGNAL_TYPE_EDGE),
  CYHAL_TRIGGER_TCPWM_TR_OVERFLOW3_LEVEL = _CYHAL_TRIGGER_CREATE_SOURCE(_CYHAL_TRIGGER_TCPWM_TR_OVERFLOW3, CYHAL_SIGNAL_TYPE_LEVEL),
  CYHAL_TRIGGER_TCPWM_TR_OVERFLOW4_EDGE = _CYHAL_TRIGGER_CREATE_SOURCE(_CYHAL_TRIGGER_TCPWM_TR_OVERFLOW4, CYHAL_SIGNAL_TYPE_EDGE),
  CYHAL_TRIGGER_TCPWM_TR_OVERFLOW4_LEVEL = _CYHAL_TRIGGER_CREATE_SOURCE(_CYHAL_TRIGGER_TCPWM_TR_OVERFLOW4, CYHAL_SIGNAL_TYPE_LEVEL),
  CYHAL_TRIGGER_TCPWM_TR_UNDERFLOW0_EDGE = _CYHAL_TRIGGER_CREATE_SOURCE(_CYHAL_TRIGGER_TCPWM_TR_UNDERFLOW0, CYHAL_SIGNAL_TYPE_EDGE),
  CYHAL_TRIGGER_TCPWM_TR_UNDERFLOW0_LEVEL = _CYHAL_TRIGGER_CREATE_SOURCE(_CYHAL_TRIGGER_TCPWM_TR_UNDERFLOW0, CYHAL_SIGNAL_TYPE_LEVEL),
  CYHAL_TRIGGER_TCPWM_TR_UNDERFLOW1_EDGE = _CYHAL_TRIGGER_CREATE_SOURCE(_CYHAL_TRIGGER_TCPWM_TR_UNDERFLOW1, CYHAL_SIGNAL_TYPE_EDGE),
  CYHAL_TRIGGER_TCPWM_TR_UNDERFLOW1_LEVEL = _CYHAL_TRIGGER_CREATE_SOURCE(_CYHAL_TRIGGER_TCPWM_TR_UNDERFLOW1, CYHAL_SIGNAL_TYPE_LEVEL),
  CYHAL_TRIGGER_TCPWM_TR_UNDERFLOW2_EDGE = _CYHAL_TRIGGER_CREATE_SOURCE(_CYHAL_TRIGGER_TCPWM_TR_UNDERFLOW2, CYHAL_SIGNAL_TYPE_EDGE),
  CYHAL_TRIGGER_TCPWM_TR_UNDERFLOW2_LEVEL = _CYHAL_TRIGGER_CREATE_SOURCE(_CYHAL_TRIGGER_TCPWM_TR_UNDERFLOW2, CYHAL_SIGNAL_TYPE_LEVEL),
  CYHAL_TRIGGER_TCPWM_TR_UNDERFLOW3_EDGE = _CYHAL_TRIGGER_CREATE_SOURCE(_CYHAL_TRIGGER_TCPWM_TR_UNDERFLOW3, CYHAL_SIGNAL_TYPE_EDGE),
  CYHAL_TRIGGER_TCPWM_TR_UNDERFLOW3_LEVEL = _CYHAL_TRIGGER_CREATE_SOURCE(_CYHAL_TRIGGER_TCPWM_TR_UNDERFLOW3, CYHAL_SIGNAL_TYPE_LEVEL),
  CYHAL_TRIGGER_TCPWM_TR_UNDERFLOW4_EDGE = _CYHAL_TRIGGER_CREATE_SOURCE(_CYHAL_TRIGGER_TCPWM_TR_UNDERFLOW4, CYHAL_SIGNAL_TYPE_EDGE),
  CYHAL_TRIGGER_TCPWM_TR_UNDERFLOW4_LEVEL = _CYHAL_TRIGGER_CREATE_SOURCE(_CYHAL_TRIGGER_TCPWM_TR_UNDERFLOW4, CYHAL_SIGNAL_TYPE_LEVEL)
}
 Name of each input trigger. More...
 
enum  cyhal_trigger_dest_psoc4000s_t {
  CYHAL_TRIGGER_TCPWM_TR_IN12 = 0,
  CYHAL_TRIGGER_TCPWM_TR_IN13 = 1
}
 Name of each output trigger. More...
 

Macro Definition Documentation

◆ CYHAL_TRIGGER_CPUSS_ZERO

#define CYHAL_TRIGGER_CPUSS_ZERO   (CYHAL_TRIGGER_CPUSS_ZERO_LEVEL)

Deprecated defines for signals that can be either level or edge.

Legacy define. Instead, use the explicit _LEVEL or _EDGE version.

Enumeration Type Documentation

◆ cyhal_trigger_source_psoc4000s_t

Name of each input trigger.

Enumerator
CYHAL_TRIGGER_CPUSS_ZERO_EDGE 

cpuss.zero

CYHAL_TRIGGER_CPUSS_ZERO_LEVEL 

cpuss.zero

CYHAL_TRIGGER_LPCOMP_COMP_OUT0_EDGE 

lpcomp.comp_out[0]

CYHAL_TRIGGER_LPCOMP_COMP_OUT0_LEVEL 

lpcomp.comp_out[0]

CYHAL_TRIGGER_LPCOMP_COMP_OUT1_EDGE 

lpcomp.comp_out[1]

CYHAL_TRIGGER_LPCOMP_COMP_OUT1_LEVEL 

lpcomp.comp_out[1]

CYHAL_TRIGGER_TCPWM_TR_COMPARE_MATCH0_EDGE 

tcpwm.tr_compare_match[0]

CYHAL_TRIGGER_TCPWM_TR_COMPARE_MATCH0_LEVEL 

tcpwm.tr_compare_match[0]

CYHAL_TRIGGER_TCPWM_TR_COMPARE_MATCH1_EDGE 

tcpwm.tr_compare_match[1]

CYHAL_TRIGGER_TCPWM_TR_COMPARE_MATCH1_LEVEL 

tcpwm.tr_compare_match[1]

CYHAL_TRIGGER_TCPWM_TR_COMPARE_MATCH2_EDGE 

tcpwm.tr_compare_match[2]

CYHAL_TRIGGER_TCPWM_TR_COMPARE_MATCH2_LEVEL 

tcpwm.tr_compare_match[2]

CYHAL_TRIGGER_TCPWM_TR_COMPARE_MATCH3_EDGE 

tcpwm.tr_compare_match[3]

CYHAL_TRIGGER_TCPWM_TR_COMPARE_MATCH3_LEVEL 

tcpwm.tr_compare_match[3]

CYHAL_TRIGGER_TCPWM_TR_COMPARE_MATCH4_EDGE 

tcpwm.tr_compare_match[4]

CYHAL_TRIGGER_TCPWM_TR_COMPARE_MATCH4_LEVEL 

tcpwm.tr_compare_match[4]

CYHAL_TRIGGER_TCPWM_TR_OVERFLOW0_EDGE 

tcpwm.tr_overflow[0]

CYHAL_TRIGGER_TCPWM_TR_OVERFLOW0_LEVEL 

tcpwm.tr_overflow[0]

CYHAL_TRIGGER_TCPWM_TR_OVERFLOW1_EDGE 

tcpwm.tr_overflow[1]

CYHAL_TRIGGER_TCPWM_TR_OVERFLOW1_LEVEL 

tcpwm.tr_overflow[1]

CYHAL_TRIGGER_TCPWM_TR_OVERFLOW2_EDGE 

tcpwm.tr_overflow[2]

CYHAL_TRIGGER_TCPWM_TR_OVERFLOW2_LEVEL 

tcpwm.tr_overflow[2]

CYHAL_TRIGGER_TCPWM_TR_OVERFLOW3_EDGE 

tcpwm.tr_overflow[3]

CYHAL_TRIGGER_TCPWM_TR_OVERFLOW3_LEVEL 

tcpwm.tr_overflow[3]

CYHAL_TRIGGER_TCPWM_TR_OVERFLOW4_EDGE 

tcpwm.tr_overflow[4]

CYHAL_TRIGGER_TCPWM_TR_OVERFLOW4_LEVEL 

tcpwm.tr_overflow[4]

CYHAL_TRIGGER_TCPWM_TR_UNDERFLOW0_EDGE 

tcpwm.tr_underflow[0]

CYHAL_TRIGGER_TCPWM_TR_UNDERFLOW0_LEVEL 

tcpwm.tr_underflow[0]

CYHAL_TRIGGER_TCPWM_TR_UNDERFLOW1_EDGE 

tcpwm.tr_underflow[1]

CYHAL_TRIGGER_TCPWM_TR_UNDERFLOW1_LEVEL 

tcpwm.tr_underflow[1]

CYHAL_TRIGGER_TCPWM_TR_UNDERFLOW2_EDGE 

tcpwm.tr_underflow[2]

CYHAL_TRIGGER_TCPWM_TR_UNDERFLOW2_LEVEL 

tcpwm.tr_underflow[2]

CYHAL_TRIGGER_TCPWM_TR_UNDERFLOW3_EDGE 

tcpwm.tr_underflow[3]

CYHAL_TRIGGER_TCPWM_TR_UNDERFLOW3_LEVEL 

tcpwm.tr_underflow[3]

CYHAL_TRIGGER_TCPWM_TR_UNDERFLOW4_EDGE 

tcpwm.tr_underflow[4]

CYHAL_TRIGGER_TCPWM_TR_UNDERFLOW4_LEVEL 

tcpwm.tr_underflow[4]

◆ cyhal_trigger_dest_psoc4000s_t

Name of each output trigger.

Enumerator
CYHAL_TRIGGER_TCPWM_TR_IN12 

TCPWM Triggers - tcpwm.tr_in[12].

CYHAL_TRIGGER_TCPWM_TR_IN13 

TCPWM Triggers - tcpwm.tr_in[13].