27 lines
833 B
C
27 lines
833 B
C
#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
|
||
|