MT2523 API Reference  LinkIt SDK v4
Enum

Overview

Enumerations

enum  hal_sdio_status_t {
  HAL_SDIO_STATUS_BUSY = -2,
  HAL_SDIO_STATUS_ERROR = -1,
  HAL_SDIO_STATUS_OK = 0
}
 This enum defines the SDIO API return type. More...
 
enum  hal_sdio_bus_width_t {
  HAL_SDIO_BUS_WIDTH_1 = 1,
  HAL_SDIO_BUS_WIDTH_4 = 2
}
 This enum define the SDIO bus width types. More...
 
enum  hal_sdio_direction_t {
  HAL_SDIO_DIRECTION_READ = 0,
  HAL_SDIO_DIRECTION_WRITE = 1
}
 This enum defines the SDIO command direction types. More...
 
enum  hal_sdio_command53_operation_t {
  HAL_SDIO_FIXED_ADDRESS = 0,
  HAL_SDIO_INCREMENTING_ADDRESS = 1
}
 This enum defines the SDIO command operation types. More...
 
enum  hal_sdio_function_id_t {
  HAL_SDIO_FUNCTION_0 = 0,
  HAL_SDIO_FUNCTION_1 = 1
}
 This enum defines the SDIO command function number. More...
 
enum  hal_sdio_port_t {
  HAL_SDIO_PORT_0 = 0,
  HAL_SDIO_PORT_1 = 1
}
 This enum defines the SDIO port. More...
 

Enumeration Type Documentation

This enum define the SDIO bus width types.

Enumerator
HAL_SDIO_BUS_WIDTH_1 

The SDIO bus width is 1 bit.

HAL_SDIO_BUS_WIDTH_4 

The SDIO bus width is 4 bits.

This enum defines the SDIO command operation types.

Enumerator
HAL_SDIO_FIXED_ADDRESS 

The SDIO multi-byte read/write at a fixed address.

HAL_SDIO_INCREMENTING_ADDRESS 

The SDIO multi-byte read/write at an incrementing address.

This enum defines the SDIO command direction types.

Enumerator
HAL_SDIO_DIRECTION_READ 

The SDIO read command.

HAL_SDIO_DIRECTION_WRITE 

The SDIO write command.

This enum defines the SDIO command function number.

Enumerator
HAL_SDIO_FUNCTION_0 

The SDIO function 0, this function selects the common I/O area register to read or write.

HAL_SDIO_FUNCTION_1 

The SDIO function 1, this function selects the I/O function 1 register to read or write.

This enum defines the SDIO port.

Enumerator
HAL_SDIO_PORT_0 

SDIO port 0.

HAL_SDIO_PORT_1 

SDIO port 1.

This enum defines the SDIO API return type.

Enumerator
HAL_SDIO_STATUS_BUSY 

The SDIO bus is busy error occurred.

HAL_SDIO_STATUS_ERROR 

An error occurred and the operation failed.

HAL_SDIO_STATUS_OK 

No error occurred during the function call.