24 lines
424 B
C
24 lines
424 B
C
/*
|
|
* si24r1.h
|
|
*
|
|
* Created on: Mar 4, 2024
|
|
* Author: gxms0
|
|
*/
|
|
|
|
#ifndef BSP_SI24R1_H_
|
|
#define BSP_SI24R1_H_
|
|
|
|
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;
|
|
|
|
|
|
#endif /* BSP_SI24R1_H_ */
|