From bb5f109e0d256a54dfda990478f8586e50c7a270 Mon Sep 17 00:00:00 2001 From: Paul Kocialkowski Date: Sat, 2 Aug 2014 14:29:29 +0200 Subject: disp: Proper icon info structure and flags Signed-off-by: Paul Kocialkowski --- include/disp.h | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/include/disp.h b/include/disp.h index 1727b8f..7aad5ee 100644 --- a/include/disp.h +++ b/include/disp.h @@ -32,14 +32,28 @@ #define IPC_DISP_RSSI_INFO 0x0706 /* + * Values + */ + + +#define IPC_DISP_ICON_INFO_FLAG_RSSI 0x01 +#define IPC_DISP_ICON_INFO_FLAG_BATTERY 0x02 +#define IPC_DISP_ICON_INFO_FLAG_HDR_RSSI 0x03 +#define IPC_DISP_ICON_INFO_FLAG_ALL 0xFF + +/* * Structures */ -struct ipc_disp_icon_info_data { +struct ipc_disp_icon_info_response_data { + unsigned char flags; // IPC_DISP_ICON_INFO_FLAG unsigned char rssi; - unsigned char bars; - unsigned char act; - unsigned char reg; + unsigned char hdr_rssi; + unsigned char battery; +} __attribute__((__packed__)); + +struct ipc_disp_icon_info_request_data { + unsigned char flags; // IPC_DISP_ICON_INFO_FLAG } __attribute__((__packed__)); struct ipc_disp_rssi_info_data { -- cgit v1.1