Rename slave_driver_uhk_module.[ch] to uhk_module_driver.[ch]

This commit is contained in:
László Monda
2017-08-06 16:06:40 +02:00
parent 78eac147d6
commit fef35bf68e
5 changed files with 4 additions and 4 deletions

View File

@@ -0,0 +1,41 @@
#ifndef __SLAVE_DRIVER_UHK_MODULE_H__
#define __SLAVE_DRIVER_UHK_MODULE_H__
// Includes:
#include "fsl_common.h"
#include "crc16.h"
// Macros:
#define UHK_MODULE_MAX_COUNT 1
#define KEY_STATE_SIZE (LEFT_KEYBOARD_HALF_KEY_COUNT/8 + 1)
#define KEY_STATE_BUFFER_SIZE (KEY_STATE_SIZE + CRC16_HASH_LENGTH)
// Typedefs:
typedef enum {
UhkModulePhase_SendKeystatesRequestCommand,
UhkModulePhase_ReceiveKeystates,
UhkModulePhase_SendPwmBrightnessCommand,
UhkModulePhase_SendTestLedCommand,
UhkModulePhase_SendDisableKeyMatrixScanState,
UhkModulePhase_SendLedPwmBrightness,
UhkModulePhase_DisableLedSdb,
} uhk_module_phase_t;
typedef struct {
uint8_t ledPwmBrightness;
bool isTestLedOn;
} uhk_module_state_t;
// Variables:
extern uhk_module_state_t UhkModuleStates[UHK_MODULE_MAX_COUNT];
// Functions:
extern void UhkModuleSlaveDriver_Init(uint8_t uhkModuleId);
extern void UhkModuleSlaveDriver_Update(uint8_t uhkModuleId);
#endif