Files
CH32V208WBU6/BSP/si24r1.h
T

24 lines
424 B
C
Raw Normal View History

2024-03-04 01:01:14 +08:00
/*
* si24r1.h
*
* Created on: Mar 4, 2024
* Author: gxms0
*/
#ifndef BSP_SI24R1_H_
#define BSP_SI24R1_H_
2024-09-18 11:50:26 +08:00
typedef struct sSI24R {
uint16_t address;
uint8_t (*read)(I2C_ptr ptr, uint16_t address, uint8_t reg,uint8_t *data, uint16_t len);
uint8_t (*write)(I2C_ptr ptr, uint16_t address, uint16_t reg,uint8_t *data, uint16_t len);
}SI24R_t;
typedef SI24R_t* SI24R_ptr;
2024-03-04 01:01:14 +08:00
#endif /* BSP_SI24R1_H_ */