MT7697 API Reference  LinkIt SDK v4
Enum

Overview

Enumerations

enum  hal_spi_slave_status_t {
  HAL_SPI_SLAVE_STATUS_ERROR = -4,
  HAL_SPI_SLAVE_STATUS_ERROR_BUSY = -3,
  HAL_SPI_SLAVE_STATUS_ERROR_PORT = -2,
  HAL_SPI_SLAVE_STATUS_INVALID_PARAMETER = -1,
  HAL_SPI_SLAVE_STATUS_OK = 0
}
 SPI slave status. More...
 
enum  hal_spi_slave_port_t {
  HAL_SPI_SLAVE_0 = 0,
  HAL_SPI_SLAVE_MAX
}
 This enum defines the SPI slave port. More...
 
enum  hal_spi_slave_clock_polarity_t {
  HAL_SPI_SLAVE_CLOCK_POLARITY0 = 0,
  HAL_SPI_SLAVE_CLOCK_POLARITY1 = 1
}
 SPI slave clock polarity definition. More...
 
enum  hal_spi_slave_clock_phase_t {
  HAL_SPI_SLAVE_CLOCK_PHASE0 = 0,
  HAL_SPI_SLAVE_CLOCK_PHASE1 = 1
}
 SPI slave clock format definition. More...
 

Enumeration Type Documentation

SPI slave clock format definition.

Enumerator
HAL_SPI_SLAVE_CLOCK_PHASE0 

Clock format is 0.

HAL_SPI_SLAVE_CLOCK_PHASE1 

Clock format is 1.

SPI slave clock polarity definition.

Enumerator
HAL_SPI_SLAVE_CLOCK_POLARITY0 

Clock polarity is 0.

HAL_SPI_SLAVE_CLOCK_POLARITY1 

Clock polarity is 1.

This enum defines the SPI slave port.

This chip just support one SPI slave port.

Enumerator
HAL_SPI_SLAVE_0 

spi slave port 0

HAL_SPI_SLAVE_MAX 

spi slave max port number<invalid>

SPI slave status.

Enumerator
HAL_SPI_SLAVE_STATUS_ERROR 

An error occurred during the SPI slave API call.

HAL_SPI_SLAVE_STATUS_ERROR_BUSY 

The SPI slave was busy during the SPI slave API call.

HAL_SPI_SLAVE_STATUS_ERROR_PORT 

Invalid SPI slave port number.

HAL_SPI_SLAVE_STATUS_INVALID_PARAMETER 

Invalid parameter.

HAL_SPI_SLAVE_STATUS_OK 

The SPI slave API call was successful.