10.1_demo/include/e_device_info.h

27 lines
833 B
C
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef E_DEVICE_INFO_H
#define E_DEVICE_INFO_H
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <sys/types.h>
// 解析系统设备信息文件获取project_id、fw_version和launcher_start_cmd
// 返回值成功返回0失败返回-1
int e_get_system_device_info(char *project_id, char *fw_version, char *launcher_cmd);
// 解析系统设备信息文件获取fw_version
// 返回值成功返回0失败返回-1
int e_get_device_firmware(char *fw_version);
// 判断是否为双屏设备project_id末尾为0表示双屏1表示单屏
// 返回值1表示双屏0表示单屏-1表示解析失败
int e_is_dual_screen_device(void);
// 获取蓝牙模板版本号
// 返回值成功返回0失败返回-1
int e_get_ble_version(char *ble_version);
#endif // E_DEVICE_INFO_H