#include <sys/socket.h>
#include <sys/un.h>
#include <unistd.h>
#include <fcntl.h>
#include <string.h>
#include <stdint.h>
#include <stdlib.h>
#include "console_socket.h"
#include "ge.h"
#include "console.h"
#include "log.h"
Go to the source code of this file.
|
| enum | {
BTN_AC_ON = 0
, BTN_DC_ALERT
, BTN_POWER_ON
, BTN_MAINTENANCE_ON
,
BTN_SWITCH_1
, BTN_SWITCH_2
, BTN_STEP_BY_STEP
, BTN_LOAD_1_2
,
BTN_EMERGEN_OFF
, BTN_STANDBY
, BTN_PAD
, BTN_MEM_CHECK
,
BTN_CLEAR
, BTN_LOAD
, BTN_HALT_START
, BTN_OPER_CALL
} |
| |
◆ CONSOLE_FRAME_BYTES
| #define CONSOLE_FRAME_BYTES 19 |
◆ CONSOLE_OFF_BUTTONS
| #define CONSOLE_OFF_BUTTONS 16 |
◆ CONSOLE_OFF_ROTARY
| #define CONSOLE_OFF_ROTARY 18 |
◆ CONSOLE_OFF_SWITCHES
| #define CONSOLE_OFF_SWITCHES 12 |
◆ anonymous enum
| Enumerator |
|---|
| BTN_AC_ON | |
| BTN_DC_ALERT | |
| BTN_POWER_ON | |
| BTN_MAINTENANCE_ON | |
| BTN_SWITCH_1 | |
| BTN_SWITCH_2 | |
| BTN_STEP_BY_STEP | |
| BTN_LOAD_1_2 | |
| BTN_EMERGEN_OFF | |
| BTN_STANDBY | |
| BTN_PAD | |
| BTN_MEM_CHECK | |
| BTN_CLEAR | |
| BTN_LOAD | |
| BTN_HALT_START | |
| BTN_OPER_CALL | |
Definition at line 79 of file console_socket.c.
◆ console_press_buttons()
| static void console_press_buttons |
( |
struct ge * |
ge, |
|
|
uint16_t |
buttons |
|
) |
| |
|
static |
◆ console_socket_check()
| static int console_socket_check |
( |
struct ge * |
ge, |
|
|
void * |
ctx |
|
) |
| |
|
static |
◆ console_socket_deinit()
| static int console_socket_deinit |
( |
struct ge * |
ge, |
|
|
void * |
ctx |
|
) |
| |
|
static |
◆ console_socket_init()
| static int console_socket_init |
( |
struct ge * |
ge, |
|
|
void * |
ctx |
|
) |
| |
|
static |
◆ console_socket_register()
| int console_socket_register |
( |
struct ge * |
ge | ) |
|
◆ console_prev_buttons
| uint16_t console_prev_buttons |
|
static |
◆ console_socket
Initial value:= {
}
static int console_socket_deinit(struct ge *ge, void *ctx)
static int console_socket_check(struct ge *ge, void *ctx)
static int console_socket_init(struct ge *ge, void *ctx)
Definition at line 209 of file console_socket.c.
◆ console_socket_fd
| int console_socket_fd = -1 |
|
static |
◆ socket_path
| const char socket_path[] = "/tmp/gemu.console" |
|
static |