3 #include "ipc_display.h"
6 void ipc_display_led_write(int target, int state)
10 p[0] = state ? DISPLAY_CMD_LED_ON : DISPLAY_CMD_LED_OFF;
12 kz_send(MSGBOX_ID_DISPLAY, 2, p);
15 void ipc_display_led_toggle(int target)
19 p[0] = DISPLAY_CMD_LED_TOGGLE;
21 kz_send(MSGBOX_ID_DISPLAY, 2, p);
24 void ipc_display_clear(void)
28 p[0] = DISPLAY_CMD_LCD_CLEAR;
29 kz_send(MSGBOX_ID_DISPLAY, 1, p);
32 void ipc_display_draw_box(int x1, int y1, int x2, int y2, int on)
36 p[0] = DISPLAY_CMD_LCD_DRAW_BOX;
42 kz_send(MSGBOX_ID_DISPLAY, 6, p);
45 void ipc_display_draw_logo(int x, int y, int size)
49 p[0] = DISPLAY_CMD_LCD_DRAW_LOGO;
53 kz_send(MSGBOX_ID_DISPLAY, 4, p);
56 void ipc_display_draw_text(int x, int y, char *str)
61 p = kz_kmalloc(3 + len + 1);
62 p[0] = DISPLAY_CMD_LCD_DRAW_TEXT;
65 memcpy(&p[3], str, len);
67 kz_send(MSGBOX_ID_DISPLAY, 3 + len + 1, p);
70 void ipc_display_draw_progressbar(
71 int x1, int y1, int x2, int y2,
72 int min, int max, int value)
76 p[0] = DISPLAY_CMD_LCD_DRAW_PBAR;
84 kz_send(MSGBOX_ID_DISPLAY, 8, p);