PSOC E8XXGP Device Support Library

| PSOC E8XXGP Device Support Library

Enumerations
Enumerated Types
PDL API Reference » MPC (Memory Protection Controller)

## General Description

Prot Driver error codes.

## Enumerations
enum | cy_en_mpc_status_t { CY_MPC_SUCCESS = 0x00U , CY_MPC_BAD_PARAM = CY_MPC_ID | CY_PDL_STATUS_ERROR | 0x01U , CY_MPC_INVALID_STATE = CY_MPC_ID | CY_PDL_STATUS_ERROR | 0x02U , CY_MPC_FAILURE = CY_MPC_ID | CY_PDL_STATUS_ERROR | 0x03U , CY_MPC_UNAVAILABLE = CY_MPC_ID | CY_PDL_STATUS_ERROR | 0x04U }
| MPC API return status. More...
enum | cy_en_mpc_access_attr_t { CY_MPC_ACCESS_DISABLED = 0x00U , CY_MPC_ACCESS_R = 0x01U , CY_MPC_ACCESS_W = 0x02U , CY_MPC_ACCESS_RW = 0x03U }
| Access permission. More...
enum | cy_en_mpc_sec_attr_t { CY_MPC_SECURE = 0x0U , CY_MPC_NON_SECURE = 0x1U }
| Security permission. More...
enum | cy_en_mpc_size_t { CY_MPC_SIZE_32B = 0U , CY_MPC_SIZE_64B = 1U , CY_MPC_SIZE_128B = 2U , CY_MPC_SIZE_256B = 3U , CY_MPC_SIZE_512B = 4U , CY_MPC_SIZE_1KB = 5U , CY_MPC_SIZE_2KB = 6U , CY_MPC_SIZE_4KB = 7U , CY_MPC_SIZE_8KB = 8U , CY_MPC_SIZE_16KB = 9U , CY_MPC_SIZE_32KB = 10U , CY_MPC_SIZE_64KB = 11U , CY_MPC_SIZE_128KB = 12U , CY_MPC_SIZE_256KB = 13U , CY_MPC_SIZE_512KB = 14U , CY_MPC_SIZE_1MB = 15U }
| MPC block size. More...
enum | cy_en_mpc_prot_context_t { CY_MPC_PC_0 = 0U , CY_MPC_PC_1 = 1U , CY_MPC_PC_2 = 2U , CY_MPC_PC_3 = 3U , CY_MPC_PC_4 = 4U , CY_MPC_PC_5 = 5U , CY_MPC_PC_6 = 6U , CY_MPC_PC_7 = 7U }
| MPC protection context. More...
enum | cy_en_mpc_resp_cfg_t { CY_MPC_RZWI = 0 , CY_MPC_BUS_ERR = 1 }
| MPC response configuration. More...

## Enumeration Type Documentation

## ◆ cy_en_mpc_status_t

enum cy_en_mpc_status_t

MPC API return status.

Enumerator
CY_MPC_SUCCESS | Returned successful.
CY_MPC_BAD_PARAM | Bad parameter was passed.
CY_MPC_INVALID_STATE | The operation is not setup.
CY_MPC_FAILURE | The resource is locked.
CY_MPC_UNAVAILABLE | The resource is unavailable.

## ◆ cy_en_mpc_access_attr_t

enum cy_en_mpc_access_attr_t

Access permission.

Enumerator
CY_MPC_ACCESS_DISABLED | Read and Write disabled.
CY_MPC_ACCESS_R | Read enabled.
CY_MPC_ACCESS_W | Write enabled.
CY_MPC_ACCESS_RW | Read and Write enabled.

## ◆ cy_en_mpc_sec_attr_t

enum cy_en_mpc_sec_attr_t

Security permission.

Enumerator
CY_MPC_SECURE | Secure.
CY_MPC_NON_SECURE | Non-secure.

## ◆ cy_en_mpc_size_t

enum cy_en_mpc_size_t

MPC block size.

Enumerator
CY_MPC_SIZE_32B | 32 bytes
CY_MPC_SIZE_64B | 64 bytes
CY_MPC_SIZE_128B | 128 bytes
CY_MPC_SIZE_256B | 256 bytes
CY_MPC_SIZE_512B | 512 bytes
CY_MPC_SIZE_1KB | 1 Kilobyte
CY_MPC_SIZE_2KB | 2 Kilobytes
CY_MPC_SIZE_4KB | 4 Kilobytes
CY_MPC_SIZE_8KB | 8 Kilobytes
CY_MPC_SIZE_16KB | 16 Kilobytes
CY_MPC_SIZE_32KB | 32 Kilobytes
CY_MPC_SIZE_64KB | 64 Kilobytes
CY_MPC_SIZE_128KB | 128 Kilobytes
CY_MPC_SIZE_256KB | 256 Kilobytes
CY_MPC_SIZE_512KB | 512 Kilobytes
CY_MPC_SIZE_1MB | 1 Megabyte

## ◆ cy_en_mpc_prot_context_t

enum cy_en_mpc_prot_context_t

MPC protection context.

Enumerator
CY_MPC_PC_0 | PC 0.
CY_MPC_PC_1 | PC 1.
CY_MPC_PC_2 | PC 2.
CY_MPC_PC_3 | PC 3.
CY_MPC_PC_4 | PC 4.
CY_MPC_PC_5 | PC 5.
CY_MPC_PC_6 | PC 6.
CY_MPC_PC_7 | PC 7.

## ◆ cy_en_mpc_resp_cfg_t

enum cy_en_mpc_resp_cfg_t

MPC response configuration.

Enumerator
CY_MPC_RZWI | Read Zero and Write ignore.
CY_MPC_BUS_ERR | Generate bus error.