Reads the PS2 status register
uint8_t XEOS_HAL_PS2_GetStatus(
void );
The content of the PS2 status register
Checks if the PS2 input buffer is empty
bool XEOS_HAL_PS2_InputBufferEmpty(
void );
True if the input buffer is empty, otherwise false
Checks if the PS2 output buffer is empty
bool XEOS_HAL_PS2_OutputBufferEmpty(
void );
True if the output buffer is empty, otherwise false
Checks for a PS2 parity error
bool XEOS_HAL_PS2_ParityError(
void );
True for a PS2 parity error, otherwise false
Always check that the output buffer is full before reading data.
uint8_t XEOS_HAL_PS2_ReadData(
void );
The content of the PS2 data register
Writes a commands to the PS2 controller
void XEOS_HAL_PS2_SendCommand(
uint8_t command );
Checks for a PS2 timeout error
bool XEOS_HAL_PS2_TimeoutError(
void );
True for a PS2 timeout error, otherwise false
Always check that the input buffer is empty before writing data.
void XEOS_HAL_PS2_WriteData(
uint8_t data );