23 lines
340 B
C
23 lines
340 B
C
#ifndef __GP8302_H__
|
|
#define __GP8302_H__
|
|
#include "main.h"
|
|
#include "i2cs.h"
|
|
#include "lib.h"
|
|
|
|
typedef enum
|
|
{
|
|
GP8302_1,
|
|
GP8302_2,
|
|
GP8302_MAX,
|
|
} gp8302_number_e;
|
|
|
|
typedef struct
|
|
{
|
|
i2c_t *i2c;
|
|
} gp8302_t;
|
|
|
|
void gp8302_init(void);
|
|
BOOL gp8302_detection(void);
|
|
void gp8302_output(gp8302_number_e no, uint16_t pressure);
|
|
#endif
|