49 bool transfer(uint8_t *out_data, uint32_t num_bytes, uint8_t *in_data,
GPIO *cs =
NULL,
void (*
cb)(
void) =
NULL);
50 bool write(
const uint8_t *out_data, uint32_t num_bytes,
GPIO *cs =
NULL);
void transfer_complete_cb()
DMA Init structure definition.
const spi_hardware_struct_t * c_
bool transfer(uint8_t *out_data, uint32_t num_bytes, uint8_t *in_data, GPIO *cs=NULL, void(*cb)(void)=NULL)
void(* transfer_cb_)(void)
bool write(const uint8_t *out_data, uint32_t num_bytes, GPIO *cs=NULL)
const uint8_t * out_buffer_ptr_
uint8_t transfer_byte(uint8_t data, GPIO *cs=NULL)
void set_divisor(uint16_t new_divisor)
DMA_InitTypeDef DMA_InitStructure_
void init(const spi_hardware_struct_t *conf)