ACwing Flow bridge firmware
STM32C011: PMW3901 optical flow over SPI, I2C target 0x3B
Loading...
Searching...
No Matches
pmw_bus_t Struct Reference

#include <pmw3901.h>

Data Fields

uint8_t(* xfer )(uint8_t b)
 one SPI byte, full duplex
 
void(* cs )(uint8_t level)
 NCS: 0 = selected

 
void(* reset )(uint8_t level)
 NRESET: 0 = in reset

 
void(* delay_us )(uint32_t us)
 

Detailed Description

Definition at line 13 of file pmw3901.h.

Field Documentation

◆ xfer

uint8_t(* pmw_bus_t::xfer) (uint8_t b)

one SPI byte, full duplex

Definition at line 14 of file pmw3901.h.

Referenced by pmw_burst(), rd(), and wr().

◆ cs

void(* pmw_bus_t::cs) (uint8_t level)

NCS: 0 = selected

Definition at line 15 of file pmw3901.h.

Referenced by pmw_burst(), pmw_init(), rd(), and wr().

◆ reset

void(* pmw_bus_t::reset) (uint8_t level)

NRESET: 0 = in reset

Definition at line 16 of file pmw3901.h.

Referenced by pmw_init().

◆ delay_us

void(* pmw_bus_t::delay_us) (uint32_t us)

Definition at line 17 of file pmw3901.h.

Referenced by pmw_burst(), pmw_init(), rd(), and wr().


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