PSoC 6 Peripheral Driver Library

General Description

API Reference

 Status codes
 Function status type codes.
 
 Assert Classes and Levels
 Defines for the Assert Classes and Levels.
 
 Reset cause
 Define RESET_CAUSE mask values.
 
 Unique ID
 Unique ID fields positions.
 

Macros

#define CY_CPU_CORTEX_M0P   (__CORTEX_M == 0)
 CM0+ core CPU Code.
 
#define CY_CPU_CORTEX_M4   (__CORTEX_M == 4)
 CM4 core CPU Code.
 
#define CY_ARM_FAULT_DEBUG_DISABLED   (0U)
 The macro to disable the Fault Handler.
 
#define CY_ARM_FAULT_DEBUG_ENABLED   (1U)
 The macro to enable the Fault Handler.
 
#define CY_ARM_FAULT_DEBUG   (CY_ARM_FAULT_DEBUG_ENABLED)
 The macro defines if the Fault Handler is enabled. More...
 
#define CY_SYSLIB_DRV_VERSION_MAJOR   2
 The driver major version.
 
#define CY_SYSLIB_DRV_VERSION_MINOR   60
 The driver minor version.
 
#define CY_MAX_FILE_NAME_SIZE   (24U)
 The max size of the file name which stores the ASSERT location.
 
#define CY_R0_Pos   (0U)
 The position of the R0 content in a fault structure.
 
#define CY_R1_Pos   (1U)
 The position of the R1 content in a fault structure.
 
#define CY_R2_Pos   (2U)
 The position of the R2 content in a fault structure.
 
#define CY_R3_Pos   (3U)
 The position of the R3 content in a fault structure.
 
#define CY_R12_Pos   (4U)
 The position of the R12 content in a fault structure.
 
#define CY_LR_Pos   (5U)
 The position of the LR content in a fault structure.
 
#define CY_PC_Pos   (6U)
 The position of the PC content in a fault structure.
 
#define CY_PSR_Pos   (7U)
 The position of the PSR content in a fault structure.
 
#define CY_DELAY_MS_OVERFLOW   (0x8000U)
 Defines a 32-kHz clock delay.
 
#define CY_IPC_DATA_FOR_CM4_SOFT_RESET   (0x1B000002UL)
 Bit[31:24] Opcode = 0x1B (SoftReset) Bit[7:1] Type = 1 (Only CM4 reset)
 

Typedefs

typedef void(* cy_israddress) (void)
 Type of ISR callbacks.
 
typedef char char_t
 Specific-length typedef for the basic numerical types of char.
 
typedef float float32_t
 Specific-length typedef for the basic numerical types of float.
 
typedef double float64_t
 Specific-length typedef for the basic numerical types of double.
 

Variables

char_t cy_assertFileName [CY_MAX_FILE_NAME_SIZE]
 The assert buffer.
 
uint32_t cy_assertLine
 The assert line value.
 
cy_stc_fault_frame_t cy_faultFrame
 Fault frame structure.
 

Macro Definition Documentation

◆ CY_ARM_FAULT_DEBUG

#define CY_ARM_FAULT_DEBUG   (CY_ARM_FAULT_DEBUG_ENABLED)

The macro defines if the Fault Handler is enabled.

Enabled by default.