42 typedef bool (*InterruptCallback)(
void * context);
51 void setCallbacks(
void * context, InterruptCallback keyboardInterrupt, InterruptCallback mouseInterrupt, InterruptCallback reset, InterruptCallback sysReq) {
53 m_keyboardInterrupt = keyboardInterrupt;
54 m_mouseInterrupt = mouseInterrupt;
61 uint8_t read(
int address);
62 void write(
int address, uint8_t value);
64 Keyboard * keyboard() {
return m_keyboard; }
65 Mouse * mouse() {
return m_mouse; }
67 void enableMouse(
bool value);
72 void updateCommandByte(uint8_t newValue);
73 bool trigKeyboardInterrupt();
74 bool trigMouseInterrupt();
75 void checkSysReq(
int scode2);
77 PS2Controller m_PS2Controller;
78 Keyboard * m_keyboard;
82 InterruptCallback m_keyboardInterrupt;
83 InterruptCallback m_mouseInterrupt;
84 InterruptCallback m_reset;
85 InterruptCallback m_sysReq;
90 uint8_t m_commandByte;
92 MousePacket m_mousePacket;
96 uint8_t m_executingCommand;
98 SemaphoreHandle_t m_mutex;
103 bool m_sysReqTriggered;
This file is the all in one include file. Application can just include this file to use FabGL library...