Initial commit: TXW82x FPV v2.7.0.7-42229 SDK + project sources
This commit is contained in:
29
sdk/include/lib/misc/drivercmd.h
Normal file
29
sdk/include/lib/misc/drivercmd.h
Normal file
@@ -0,0 +1,29 @@
|
||||
/**
|
||||
* @file drivercmd.h
|
||||
* @author HUGE-IC Application Team
|
||||
* @brief Module driver command function
|
||||
* @version 1.0.0
|
||||
* @date 2021-8-31
|
||||
*
|
||||
* @copyright Copyright (c) 2021 HUGE-IC
|
||||
*/
|
||||
#ifndef _DRIVER_CMD_H_
|
||||
#define _DRIVER_CMD_H_
|
||||
|
||||
#include "typesdef.h"
|
||||
|
||||
struct driver_cmd_param {
|
||||
uint32 cmd;
|
||||
uint8 *data;
|
||||
uint32 data_len;
|
||||
uint8 **resp;
|
||||
uint32 *resp_len;
|
||||
};
|
||||
|
||||
typedef int32(*driver_cmd_hdl)(uint32 priv, struct driver_cmd_param *param);
|
||||
|
||||
int32 driver_cmd_hdl_register(driver_cmd_hdl hdl, uint32 data);
|
||||
int32 driver_cmd_hdl_unregister(driver_cmd_hdl hdl);
|
||||
int32 driver_cmd_hdl_proc(struct driver_cmd_param *param);
|
||||
|
||||
#endif // _DRIVER_CMD_H_
|
||||
9
sdk/include/lib/misc/mcu/mcu_util.h
Normal file
9
sdk/include/lib/misc/mcu/mcu_util.h
Normal file
@@ -0,0 +1,9 @@
|
||||
#ifndef _MCU_UTIL_H_
|
||||
#define _MCU_UTIL_H_
|
||||
|
||||
int32 mcu_init(void);
|
||||
int32 mcu_pir_sensor_set(uint8 level);
|
||||
uint8 mcu_pir_sensor_get(void);
|
||||
uint8 mcu_battery_soc_get(void);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user