Pudding_LWNode_FT/include/app_ranging_impl.h
Yilin Sun dd6deb7ab9
Added ALS, DHT, IMU sensors and ToF
Signed-off-by: Yilin Sun <imi415@imi.moe>
2023-07-05 09:41:28 +08:00

20 lines
498 B
C

#ifndef APP_RANGING_IMPL_H
#define APP_RANGING_IMPL_H
/* HAL Drivers */
#include "stm32wlxx_hal.h"
/* Ranging sensor */
#include "vl53l1_platform.h"
typedef struct {
I2C_HandleTypeDef *hi2c;
uint8_t dev_addr;
} app_ranging_impl_t;
VL53L1_Error app_ranging_delay_us(void *pdev, uint32_t delay_usec);
VL53L1_Error app_ranging_delay_ms(void *pdev, uint32_t delay_msec);
VL53L1_Error app_ranging_i2c_xfer(void *pdev, VL53L1_Dev_Xfer_Desc_t *xfer);
#endif // APP_RANGING_IMPL_H