rcc 1.0
RCC - RGB LED Color Cube Documentation
|
Enumerations for SPI interface configurations and status. More...
Go to the source code of this file.
Typedefs | |
typedef enum SPI_Direction_t | SPI_Direction |
Alias for enum SPI_Direction_t representing SPI bit order options. | |
typedef enum SPI_Edge_t | SPI_Polarity |
Alias for enum SPI_Edge_t representing the clock polarity edge. | |
typedef enum SPI_Edge_t | SPI_Phase |
Alias for enum SPI_Edge_t representing the clock phase edge. | |
typedef enum SPI_Select_t | SPI_Select |
Alias for enum SPI_Select_t representing SPI enable states. | |
typedef enum SPI_Status_t | SPI_Status |
Alias for enum SPI_Status_t representing SPI communication status codes. |
Enumerations | |
enum | SPI_Direction_t { SPI_MSB =0 , SPI_LSB } |
Defines the bit order for SPI data transmission. More... | |
enum | SPI_Edge_t { SPI_Rising =0 , SPI_Falling } |
Defines the clock edge options for SPI polarity and phase. More... | |
enum | SPI_Select_t { SPI_Disable =0 , SPI_Enable } |
Defines the SPI enable or disable states. More... | |
enum | SPI_Status_t { SPI_Received = 0 , SPI_Collision , SPI_Master_Abort , SPI_None } |
Represents the status of SPI communication events. More... |
Enumerations for SPI interface configurations and status.
This header file defines enumerations used to represent various configuration parameters and status codes for the SPI (Serial Peripheral Interface) communication protocol. It includes enums for bit order (MSB/LSB), clock edge selections for polarity and phase, SPI enable/disable states, and communication status including reception and collision indicators.
typedef enum SPI_Direction_t SPI_Direction |
Alias for enum SPI_Direction_t representing SPI bit order options.
typedef enum SPI_Edge_t SPI_Phase |
Alias for enum SPI_Edge_t representing the clock phase edge.
typedef enum SPI_Edge_t SPI_Polarity |
Alias for enum SPI_Edge_t representing the clock polarity edge.
typedef enum SPI_Select_t SPI_Select |
Alias for enum SPI_Select_t representing SPI enable states.
typedef enum SPI_Status_t SPI_Status |
Alias for enum SPI_Status_t representing SPI communication status codes.
enum SPI_Direction_t |
Defines the bit order for SPI data transmission.
This enumeration specifies the order in which bits are transmitted over the SPI bus. Selecting either most significant bit (MSB) first or least significant bit (LSB) first affects how data bytes are shifted out and received on the SPI interface.
Enumerator | |
---|---|
SPI_MSB | Data is transmitted with the most significant bit first |
SPI_LSB | Data is transmitted with the least significant bit first |
enum SPI_Edge_t |
Defines the clock edge options for SPI polarity and phase.
This enumeration specifies the clock edges that control when data is sampled and shifted in SPI communication. The edge can be either the rising edge or the falling edge of the clock signal.
Enumerator | |
---|---|
SPI_Rising | Data is sampled or shifted on the rising clock edge |
SPI_Falling | Data is sampled or shifted on the falling clock edge |
enum SPI_Select_t |
Defines the SPI enable or disable states.
This enumeration specifies whether the SPI interface is enabled or disabled. It is used to control the activation state of the SPI bus for managing slave select (SS) signal or SPI operation mode.
Enumerator | |
---|---|
SPI_Disable | SPI interface disabled |
SPI_Enable | SPI interface enabled |
enum SPI_Status_t |
Represents the status of SPI communication events.
This enumeration indicates various SPI data reception and error states.