PSoC 6 Peripheral Driver Library

General Description

Enumerations are used in the driver.

Data Structures

struct  cy_stc_ipc_sema_t
 IPC semaphore control data structure. More...
 

Enumerations

enum  cy_en_ipcsema_status_t {
  CY_IPC_SEMA_SUCCESS = (uint32_t)(0ul),
  CY_IPC_SEMA_ERROR_LOCKED = (uint32_t)(CY_IPC_SEMA_ID_ERROR | 1ul),
  CY_IPC_SEMA_ERROR_UNLOCKED = (uint32_t)(CY_IPC_SEMA_ID_ERROR | 2ul),
  CY_IPC_SEMA_BAD_PARAM = (uint32_t)(CY_IPC_SEMA_ID_ERROR | 3ul),
  CY_IPC_SEMA_OUT_OF_RANGE = (uint32_t)(CY_IPC_SEMA_ID_ERROR | 4ul),
  CY_IPC_SEMA_NOT_ACQUIRED = (uint32_t)(CY_IPC_SEMA_ID_INFO | 2ul),
  CY_IPC_SEMA_LOCKED = (uint32_t)(CY_IPC_SEMA_ID_INFO | 3ul),
  CY_IPC_SEMA_STATUS_LOCKED = (uint32_t)(CY_IPC_SEMA_ID_INFO | 1ul),
  CY_IPC_SEMA_STATUS_UNLOCKED = (uint32_t)(CY_IPC_SEMA_ID_INFO | 0ul)
}
 Return constants for IPC semaphores functions. More...
 

Enumeration Type Documentation

◆ cy_en_ipcsema_status_t

Return constants for IPC semaphores functions.

Enumerator
CY_IPC_SEMA_SUCCESS 

No error has occurred.

CY_IPC_SEMA_ERROR_LOCKED 

Semaphores IPC channel has already been locked.

CY_IPC_SEMA_ERROR_UNLOCKED 

Semaphores IPC channel is unlocked.

CY_IPC_SEMA_BAD_PARAM 

Semaphore API bad parameter.

CY_IPC_SEMA_OUT_OF_RANGE 

Semaphore API return when semaphore number is out of the range.

CY_IPC_SEMA_NOT_ACQUIRED 

Semaphore API return when IPC channel was not acquired.

CY_IPC_SEMA_LOCKED 

Semaphore API return status when semaphore channel is busy or locked by another process.

CY_IPC_SEMA_STATUS_LOCKED 

Semaphore status return that the semaphore is set.

CY_IPC_SEMA_STATUS_UNLOCKED 

Semaphore status return that the semaphore is cleared.