libxr  1.0
Want to be the best embedded framework
Loading...
Searching...
No Matches
LibXR::SPI::Configuration Struct Reference

存储 SPI 配置参数的结构体。Structure for storing SPI configuration parameters. More...

#include <spi.hpp>

Data Fields

ClockPolarity clock_polarity
 SPI 时钟极性。SPI clock polarity.
 
ClockPhase clock_phase = ClockPhase::EDGE_1
 SPI 时钟相位。SPI clock phase.
 
Prescaler prescaler = Prescaler::UNKNOWN
 SPI 分频系数。SPI prescaler.
 
bool double_buffer = false
 是否使用双缓冲区。Whether to use double buffer.
 

Detailed Description

存储 SPI 配置参数的结构体。Structure for storing SPI configuration parameters.

Definition at line 84 of file spi.hpp.

Field Documentation

◆ clock_phase

ClockPhase LibXR::SPI::Configuration::clock_phase = ClockPhase::EDGE_1

SPI 时钟相位。SPI clock phase.

Definition at line 88 of file spi.hpp.

◆ clock_polarity

ClockPolarity LibXR::SPI::Configuration::clock_polarity
Initial value:
=
@ LOW
时钟空闲时为低电平。Clock idle low.

SPI 时钟极性。SPI clock polarity.

Definition at line 86 of file spi.hpp.

◆ double_buffer

bool LibXR::SPI::Configuration::double_buffer = false

是否使用双缓冲区。Whether to use double buffer.

Definition at line 90 of file spi.hpp.

◆ prescaler

Prescaler LibXR::SPI::Configuration::prescaler = Prescaler::UNKNOWN

SPI 分频系数。SPI prescaler.

Definition at line 89 of file spi.hpp.


The documentation for this struct was generated from the following file: