MTB CAT1 Peripheral driver library

General Description

Macro definitions are used in the driver.

Macros

#define CY_IPC_SEMA_RTN   (0x0100UL)
 Software PDL driver ID for IPC semaphore functions.
 
#define CY_IPC_SEMA_ID_INFO   (uint32_t)( CY_IPC_ID_INFO | CY_IPC_SEMA_RTN)
 Return prefix for IPC semaphore function status codes.
 
#define CY_IPC_SEMA_ID_WARNING   (uint32_t)( CY_IPC_ID_WARNING | CY_IPC_SEMA_RTN)
 Return prefix for IPC semaphore function warning return values.
 
#define CY_IPC_SEMA_ID_ERROR   (uint32_t)( CY_IPC_ID_ERROR | CY_IPC_SEMA_RTN)
 Return prefix for IPC semaphore function error return values.
 
#define CY_IPC_SEMA_PER_WORD   (uint32_t)32u
 32 semaphores per word
 
#define CY_IPC_SEMA_SEC(sema)   (0x10000000UL | (sema))
 Convert normal to secure semaphore number.
 
#define CY_IPC_SEMA_IS_SEC(sema)   (((sema) & 0x10000000UL) != 0UL)
 Check valid secure semaphore.
 
#define CY_IPC_SEMA_GET_NUM(sema)   ((sema) & (~(0x10000000UL)))
 Returns normal semaphore number.