MT2523 API Reference  LinkIt SDK v4
Enum
HAL » MPU

Overview

Enumerations

enum  hal_mpu_status_t {
  HAL_MPU_STATUS_INVALID_PARAMETER = -6,
  HAL_MPU_STATUS_ERROR_BUSY = -5,
  HAL_MPU_STATUS_ERROR_REGION = -4,
  HAL_MPU_STATUS_ERROR_REGION_ADDRESS = -3,
  HAL_MPU_STATUS_ERROR_REGION_SIZE = -2,
  HAL_MPU_STATUS_ERROR = -1,
  HAL_MPU_STATUS_OK = 0
}
 This enum defines the MPU API return status. More...
 
enum  hal_mpu_region_t {
  HAL_MPU_REGION_0 = 0,
  HAL_MPU_REGION_1 = 1,
  HAL_MPU_REGION_2 = 2,
  HAL_MPU_REGION_3 = 3,
  HAL_MPU_REGION_4 = 4,
  HAL_MPU_REGION_5 = 5,
  HAL_MPU_REGION_6 = 6,
  HAL_MPU_REGION_7 = 7,
  HAL_MPU_REGION_MAX
}
 MPU region number. More...
 
enum  hal_mpu_region_size_t {
  HAL_MPU_REGION_SIZE_MIN = 3,
  HAL_MPU_REGION_SIZE_32B = 4,
  HAL_MPU_REGION_SIZE_64B = 5,
  HAL_MPU_REGION_SIZE_128B = 6,
  HAL_MPU_REGION_SIZE_256B = 7,
  HAL_MPU_REGION_SIZE_512B = 8,
  HAL_MPU_REGION_SIZE_1KB = 9,
  HAL_MPU_REGION_SIZE_2KB = 10,
  HAL_MPU_REGION_SIZE_4KB = 11,
  HAL_MPU_REGION_SIZE_8KB = 12,
  HAL_MPU_REGION_SIZE_16KB = 13,
  HAL_MPU_REGION_SIZE_32KB = 14,
  HAL_MPU_REGION_SIZE_64KB = 15,
  HAL_MPU_REGION_SIZE_128KB = 16,
  HAL_MPU_REGION_SIZE_256KB = 17,
  HAL_MPU_REGION_SIZE_512KB = 18,
  HAL_MPU_REGION_SIZE_1MB = 19,
  HAL_MPU_REGION_SIZE_2MB = 20,
  HAL_MPU_REGION_SIZE_4MB = 21,
  HAL_MPU_REGION_SIZE_8MB = 22,
  HAL_MPU_REGION_SIZE_16MB = 23,
  HAL_MPU_REGION_SIZE_32MB = 24,
  HAL_MPU_REGION_SIZE_64MB = 25,
  HAL_MPU_REGION_SIZE_128MB = 26,
  HAL_MPU_REGION_SIZE_256MB = 27,
  HAL_MPU_REGION_SIZE_512MB = 28,
  HAL_MPU_REGION_SIZE_1GB = 29,
  HAL_MPU_REGION_SIZE_2GB = 30,
  HAL_MPU_REGION_SIZE_4GB = 31,
  HAL_MPU_REGION_SIZE_MAX
}
 MPU region size. More...
 
enum  hal_mpu_access_permission_t {
  HAL_MPU_NO_ACCESS = 0,
  HAL_MPU_PRIVILEGED_ACCESS_ONLY = 1,
  HAL_MPU_PRIVILEGED_READ_WRITE_UNPRIVILEGED_READ_ONLY = 2,
  HAL_MPU_FULL_ACCESS = 3,
  HAL_MPU_UNPREDICTABLE = 4,
  HAL_MPU_PRIVILEGED_READ_ONLY = 5,
  HAL_MPU_READONLY = 6
}
 MPU access permission indicates the access rights of the specified region. More...
 

Enumeration Type Documentation

MPU access permission indicates the access rights of the specified region.

Enumerator
HAL_MPU_NO_ACCESS 

No access for both the privileged and unprivileged software.

HAL_MPU_PRIVILEGED_ACCESS_ONLY 

Access from privileged software only.

HAL_MPU_PRIVILEGED_READ_WRITE_UNPRIVILEGED_READ_ONLY 

Read and write for the privileged software, read only for the unprivileged software.

HAL_MPU_FULL_ACCESS 

Full access for both the privileged and unprivileged software.

HAL_MPU_UNPREDICTABLE 

Reserved access permission, results in unpredictable MPU behavior.

HAL_MPU_PRIVILEGED_READ_ONLY 

Read only for the privileged software.

HAL_MPU_READONLY 

Read only for both the privileged and unprivileged software.

MPU region size.

Enumerator
HAL_MPU_REGION_SIZE_MIN 

Minimum MPU size (invalid)

HAL_MPU_REGION_SIZE_32B 

MPU region size is 32B.

HAL_MPU_REGION_SIZE_64B 

MPU region size is 64B.

HAL_MPU_REGION_SIZE_128B 

MPU region size is 128B.

HAL_MPU_REGION_SIZE_256B 

MPU region size is 256B.

HAL_MPU_REGION_SIZE_512B 

MPU region size is 512B.

HAL_MPU_REGION_SIZE_1KB 

MPU region size is 1KB.

HAL_MPU_REGION_SIZE_2KB 

MPU region size is 2KB.

HAL_MPU_REGION_SIZE_4KB 

MPU region size is 4KB.

HAL_MPU_REGION_SIZE_8KB 

MPU region size is 8KB.

HAL_MPU_REGION_SIZE_16KB 

MPU region size is 16KB.

HAL_MPU_REGION_SIZE_32KB 

MPU region size is 32KB.

HAL_MPU_REGION_SIZE_64KB 

MPU region size is 64KB.

HAL_MPU_REGION_SIZE_128KB 

MPU region size is 128KB.

HAL_MPU_REGION_SIZE_256KB 

MPU region size is 256KB.

HAL_MPU_REGION_SIZE_512KB 

MPU region size is 512KB.

HAL_MPU_REGION_SIZE_1MB 

MPU region size is 1MB.

HAL_MPU_REGION_SIZE_2MB 

MPU region size is 2MB.

HAL_MPU_REGION_SIZE_4MB 

MPU region size is 4MB.

HAL_MPU_REGION_SIZE_8MB 

MPU region size is 8MB.

HAL_MPU_REGION_SIZE_16MB 

MPU region size is 16MB.

HAL_MPU_REGION_SIZE_32MB 

MPU region size is 32MB.

HAL_MPU_REGION_SIZE_64MB 

MPU region size is 64MB.

HAL_MPU_REGION_SIZE_128MB 

MPU region size is 128MB.

HAL_MPU_REGION_SIZE_256MB 

MPU region size is 256MB.

HAL_MPU_REGION_SIZE_512MB 

MPU region size is 512MB.

HAL_MPU_REGION_SIZE_1GB 

MPU region size is 1GB.

HAL_MPU_REGION_SIZE_2GB 

MPU region size is 2GB.

HAL_MPU_REGION_SIZE_4GB 

MPU region size is 4GB.

HAL_MPU_REGION_SIZE_MAX 

Max MPU region size (invalid)

MPU region number.

Enumerator
HAL_MPU_REGION_0 

MPU region 0.

HAL_MPU_REGION_1 

MPU region 1.

HAL_MPU_REGION_2 

MPU region 2.

HAL_MPU_REGION_3 

MPU region 3.

HAL_MPU_REGION_4 

MPU region 4.

HAL_MPU_REGION_5 

MPU region 5.

HAL_MPU_REGION_6 

MPU region 6.

HAL_MPU_REGION_7 

MPU region 7.

HAL_MPU_REGION_MAX 

Max MPU region number (invalid)

This enum defines the MPU API return status.

Enumerator
HAL_MPU_STATUS_INVALID_PARAMETER 

Invalid parameter.

HAL_MPU_STATUS_ERROR_BUSY 

MPU is busy.

HAL_MPU_STATUS_ERROR_REGION 

MPU region number error, MPU region is not a value of type hal_mpu_region_t.

HAL_MPU_STATUS_ERROR_REGION_ADDRESS 

MPU region address error, MPU region address is not valid.

HAL_MPU_STATUS_ERROR_REGION_SIZE 

MPU region size error, MPU region size is not a value of type hal_mpu_region_size_t.

HAL_MPU_STATUS_ERROR 

MPU error, errors other than reasons described above.

HAL_MPU_STATUS_OK 

MPU ok.