29 lines
806 B
C
29 lines
806 B
C
/*----------------------------------------------------------------------------
|
|
* Copyright (c) TJD Technologies Co., Ltd. 2020. All rights reserved.
|
|
*
|
|
* Description: msensor_api.h
|
|
*
|
|
* Author: liangjianfei
|
|
*
|
|
* Create: 2024-4-28
|
|
*--------------------------------------------------------------------------*/
|
|
#ifndef MSENSOR_API_H
|
|
#define MSENSOR_API_H
|
|
#include "errcode.h"
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
#include "service_msensor.h"
|
|
|
|
typedef struct{
|
|
errcode_t (*open)(void);
|
|
errcode_t (*close)(void);
|
|
errcode_t (*resume)(void);
|
|
void (*suspend)(void);
|
|
int32_t (*alg_init)(void);
|
|
int32_t (*timer_callback)(float *, orientation_info_t *);
|
|
int (*get_accuracy) (void);
|
|
}msensor_info;
|
|
|
|
msensor_info *tjd_driver_ms_api_get_ops(void);
|
|
|
|
#endif |