39 lines
857 B
C
39 lines
857 B
C
/*----------------------------------------------------------------------------
|
|
* Copyright (c) TJD Technologies Co., Ltd. 2020. All rights reserved.
|
|
*
|
|
* Description: gsensor_api.h
|
|
*
|
|
* Author: liangjianfei
|
|
*
|
|
* Create: 2024-4-25
|
|
*--------------------------------------------------------------------------*/
|
|
#ifndef GSENSOR_API_H
|
|
#define GSENSOR_API_H
|
|
#include "stdint.h"
|
|
#include "errcode.h"
|
|
|
|
#ifdef __cplusplus
|
|
#if __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
#endif
|
|
|
|
typedef struct {
|
|
int32_t (*open)(void);
|
|
int32_t (*close)(void);
|
|
void (*suspend)(void);
|
|
void (*resume)(void);
|
|
void (*low_power_set)(void);
|
|
void (*standard_power_set)(void);
|
|
}gsensor_info;
|
|
|
|
extern gsensor_info *tjd_driver_gs_get_ops(void);
|
|
void tjd_driver_gs_read_data(void);
|
|
|
|
#ifdef __cplusplus
|
|
#if __cplusplus
|
|
}
|
|
#endif
|
|
#endif
|
|
|
|
#endif |