TMF8829 Universal Driver 0.1.0
Loading...
Searching...
No Matches
tmf8829_ops Struct Reference

Set of platform callbacks required by tmf8829_init. More...

#include <tmf8829_ops.h>

Collaboration diagram for tmf8829_ops:
[legend]

Data Fields

tmf8829_read_fn read
tmf8829_write_fn write
tmf8829_delay_us_fn delay_us
tmf8829_systick_us_fn systick_us
tmf8829_write_pin_enable_fn write_pin_enable
tmf8829_read_pin_int_fn read_pin_int

Detailed Description

Set of platform callbacks required by tmf8829_init.

Declare one const instance per port (e.g. STM32 HAL) and pass its address to every sensor on that port.

Field Documentation

◆ delay_us

tmf8829_delay_us_fn tmf8829_ops::delay_us

Required: microsecond delay.

◆ read

tmf8829_read_fn tmf8829_ops::read

Required: register read.

◆ read_pin_int

tmf8829_read_pin_int_fn tmf8829_ops::read_pin_int

Optional: IRQ pin; may be NULL.

◆ systick_us

tmf8829_systick_us_fn tmf8829_ops::systick_us

Required: microsecond time base.

◆ write

tmf8829_write_fn tmf8829_ops::write

Required: register write.

◆ write_pin_enable

tmf8829_write_pin_enable_fn tmf8829_ops::write_pin_enable

Optional: enable power pin; may be NULL if pin is permanently high.


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