LibDriver APM2000
Loading...
Searching...
No Matches
apm2000_handle_s Struct Reference

apm2000 handle structure definition More...

#include <driver_apm2000.h>

Data Fields

uint8_t(* iic_init )(void)
uint8_t(* iic_deinit )(void)
uint8_t(* iic_read_address16 )(uint8_t addr, uint16_t reg, uint8_t *buf, uint16_t len)
uint8_t(* iic_write_address16 )(uint8_t addr, uint16_t reg, uint8_t *buf, uint16_t len)
uint8_t(* uart_init )(void)
uint8_t(* uart_deinit )(void)
uint16_t(* uart_read )(uint8_t *buf, uint16_t len)
uint8_t(* uart_flush )(void)
uint8_t(* uart_write )(uint8_t *buf, uint16_t len)
void(* delay_ms )(uint32_t ms)
void(* debug_print )(const char *const fmt,...)
uint8_t inited
uint8_t iic_uart
uint8_t buf [255+5]

Detailed Description

apm2000 handle structure definition

Definition at line 71 of file driver_apm2000.h.

Field Documentation

◆ buf

uint8_t buf[255+5]

inner buffer

Definition at line 86 of file driver_apm2000.h.

◆ debug_print

void(* debug_print) (const char *const fmt,...)

point to a debug_print function address

Definition at line 83 of file driver_apm2000.h.

◆ delay_ms

void(* delay_ms) (uint32_t ms)

point to a delay_ms function address

Definition at line 82 of file driver_apm2000.h.

◆ iic_deinit

uint8_t(* iic_deinit) (void)

point to an iic_deinit function address

Definition at line 74 of file driver_apm2000.h.

◆ iic_init

uint8_t(* iic_init) (void)

point to an iic_init function address

Definition at line 73 of file driver_apm2000.h.

◆ iic_read_address16

uint8_t(* iic_read_address16) (uint8_t addr, uint16_t reg, uint8_t *buf, uint16_t len)

point to an iic_read_address16 function address

Definition at line 75 of file driver_apm2000.h.

◆ iic_uart

uint8_t iic_uart

iic uart

Definition at line 85 of file driver_apm2000.h.

◆ iic_write_address16

uint8_t(* iic_write_address16) (uint8_t addr, uint16_t reg, uint8_t *buf, uint16_t len)

point to an iic_write_address16 function address

Definition at line 76 of file driver_apm2000.h.

◆ inited

uint8_t inited

inited flag

Definition at line 84 of file driver_apm2000.h.

◆ uart_deinit

uint8_t(* uart_deinit) (void)

point to an uart_deinit function address

Definition at line 78 of file driver_apm2000.h.

◆ uart_flush

uint8_t(* uart_flush) (void)

point to an uart_flush function address

Definition at line 80 of file driver_apm2000.h.

◆ uart_init

uint8_t(* uart_init) (void)

point to an uart_init function address

Definition at line 77 of file driver_apm2000.h.

◆ uart_read

uint16_t(* uart_read) (uint8_t *buf, uint16_t len)

point to an uart_read function address

Definition at line 79 of file driver_apm2000.h.

◆ uart_write

uint8_t(* uart_write) (uint8_t *buf, uint16_t len)

point to an uart_write function address

Definition at line 81 of file driver_apm2000.h.


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