LibDriver APDS9960
Loading...
Searching...
No Matches
apds9960_handle_s Struct Reference

apds9960 handle structure definition More...

#include <driver_apds9960.h>

Data Fields

uint8_t(* iic_init )(void)
uint8_t(* iic_deinit )(void)
uint8_t(* iic_read )(uint8_t addr, uint8_t reg, uint8_t *buf, uint16_t len)
uint8_t(* iic_write )(uint8_t addr, uint8_t reg, uint8_t *buf, uint16_t len)
void(* delay_ms )(uint32_t ms)
void(* debug_print )(const char *const fmt,...)
void(* receive_callback )(uint8_t type)
uint8_t inited
uint8_t gesture_status
uint8_t gesture_threshold
int32_t gesture_sensitivity_1
int32_t gesture_sensitivity_2
int32_t gesture_ud_delta
int32_t gesture_lr_delta
int32_t gesture_ud_count
int32_t gesture_lr_count
int32_t gesture_near_count
int32_t gesture_far_count

Detailed Description

apds9960 handle structure definition

Definition at line 346 of file driver_apds9960.h.

Field Documentation

◆ debug_print

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

point to a debug_print function address

Definition at line 353 of file driver_apds9960.h.

◆ delay_ms

void(* delay_ms) (uint32_t ms)

point to a delay_ms function address

Definition at line 352 of file driver_apds9960.h.

◆ gesture_far_count

int32_t gesture_far_count

gesture far count

Definition at line 365 of file driver_apds9960.h.

◆ gesture_lr_count

int32_t gesture_lr_count

gesture lr count

Definition at line 363 of file driver_apds9960.h.

◆ gesture_lr_delta

int32_t gesture_lr_delta

gesture lr delta

Definition at line 361 of file driver_apds9960.h.

◆ gesture_near_count

int32_t gesture_near_count

gesture near count

Definition at line 364 of file driver_apds9960.h.

◆ gesture_sensitivity_1

int32_t gesture_sensitivity_1

gesture sensitivity 1

Definition at line 358 of file driver_apds9960.h.

◆ gesture_sensitivity_2

int32_t gesture_sensitivity_2

gesture sensitivity 2

Definition at line 359 of file driver_apds9960.h.

◆ gesture_status

uint8_t gesture_status

gesture status

Definition at line 356 of file driver_apds9960.h.

◆ gesture_threshold

uint8_t gesture_threshold

gesture threshold

Definition at line 357 of file driver_apds9960.h.

◆ gesture_ud_count

int32_t gesture_ud_count

gesture ud count

Definition at line 362 of file driver_apds9960.h.

◆ gesture_ud_delta

int32_t gesture_ud_delta

gesture ud delta

Definition at line 360 of file driver_apds9960.h.

◆ iic_deinit

uint8_t(* iic_deinit) (void)

point to an iic_deinit function address

Definition at line 349 of file driver_apds9960.h.

◆ iic_init

uint8_t(* iic_init) (void)

point to an iic_init function address

Definition at line 348 of file driver_apds9960.h.

◆ iic_read

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

point to an iic_read function address

Definition at line 350 of file driver_apds9960.h.

◆ iic_write

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

point to an iic_write function address

Definition at line 351 of file driver_apds9960.h.

◆ inited

uint8_t inited

inited flag

Definition at line 355 of file driver_apds9960.h.

◆ receive_callback

void(* receive_callback) (uint8_t type)

point to a receive_callback function address

Definition at line 354 of file driver_apds9960.h.


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