Rename usb_command_get_keyboard_state.[ch] to usb_command_get_device_state.[ch]
This commit is contained in:
15
right/src/usb_commands/usb_command_get_device_state.c
Normal file
15
right/src/usb_commands/usb_command_get_device_state.c
Normal file
@@ -0,0 +1,15 @@
|
||||
#include "fsl_common.h"
|
||||
#include "usb_commands/usb_command_get_device_state.h"
|
||||
#include "usb_protocol_handler.h"
|
||||
#include "eeprom.h"
|
||||
#include "peripherals/merge_sensor.h"
|
||||
#include "slave_drivers/uhk_module_driver.h"
|
||||
|
||||
void UsbCommand_GetKeyboardState(void)
|
||||
{
|
||||
SetUsbTxBufferUint8(1, IsEepromBusy);
|
||||
SetUsbTxBufferUint8(2, MERGE_SENSOR_IS_MERGED);
|
||||
SetUsbTxBufferUint8(3, UhkModuleStates[UhkModuleDriverId_LeftKeyboardHalf].moduleId);
|
||||
SetUsbTxBufferUint8(4, UhkModuleStates[UhkModuleDriverId_LeftAddon].moduleId);
|
||||
SetUsbTxBufferUint8(5, UhkModuleStates[UhkModuleDriverId_RightAddon].moduleId);
|
||||
}
|
||||
Reference in New Issue
Block a user