#include <spi.h>
Definition at line 37 of file spi.h.
◆ disable()
void SPI::disable |
( |
GPIO & |
cs | ) |
|
◆ enable()
void SPI::enable |
( |
GPIO & |
cs | ) |
|
◆ init()
◆ is_busy()
Definition at line 51 of file spi.h.
◆ perform_transfer()
void SPI::perform_transfer |
( |
| ) |
|
|
private |
◆ set_divisor()
void SPI::set_divisor |
( |
uint16_t |
new_divisor | ) |
|
◆ transfer()
bool SPI::transfer |
( |
uint8_t * |
out_data, |
|
|
uint32_t |
num_bytes, |
|
|
uint8_t * |
in_data, |
|
|
GPIO * |
cs = NULL , |
|
|
void(*)(void) |
cb = NULL |
|
) |
| |
◆ transfer_byte()
uint8_t SPI::transfer_byte |
( |
uint8_t |
data, |
|
|
GPIO * |
cs = NULL |
|
) |
| |
◆ transfer_complete_cb()
void SPI::transfer_complete_cb |
( |
| ) |
|
◆ write()
bool SPI::write |
( |
const uint8_t * |
out_data, |
|
|
uint32_t |
num_bytes, |
|
|
GPIO * |
cs = NULL |
|
) |
| |
◆ busy_
volatile bool SPI::busy_ = false |
|
private |
Definition at line 68 of file spi.h.
◆ c_
Definition at line 59 of file spi.h.
◆ cs_
Definition at line 67 of file spi.h.
◆ DMA_InitStructure_
Definition at line 64 of file spi.h.
◆ errors_
uint32_t SPI::errors_ = 0 |
|
private |
Definition at line 66 of file spi.h.
◆ in_buffer_ptr_
uint8_t* SPI::in_buffer_ptr_ |
|
private |
Definition at line 55 of file spi.h.
◆ miso_
Definition at line 61 of file spi.h.
◆ mosi_
Definition at line 60 of file spi.h.
◆ num_bytes_
Definition at line 57 of file spi.h.
◆ out_buffer_ptr_
const uint8_t* SPI::out_buffer_ptr_ |
|
private |
Definition at line 56 of file spi.h.
◆ sck_
Definition at line 62 of file spi.h.
◆ transfer_cb_
void(* SPI::transfer_cb_) (void) = NULL |
|
private |
Definition at line 69 of file spi.h.
The documentation for this class was generated from the following files: