Start to implement the fully asynchronous bridge protocol scheduler and use it to transfer key and LED state.
This commit is contained in:
27
right/src/bridge_protocol_scheduler.h
Normal file
27
right/src/bridge_protocol_scheduler.h
Normal file
@@ -0,0 +1,27 @@
|
||||
#ifndef __BRIDGE_PROTOCOL_SCHEDULER_H__
|
||||
#define __BRIDGE_PROTOCOL_SCHEDULER_H__
|
||||
|
||||
// Includes:
|
||||
|
||||
#include "fsl_common.h"
|
||||
|
||||
// Typedefs:
|
||||
|
||||
typedef enum {
|
||||
BridgeSlaveType_LedDriver,
|
||||
BridgeSlaveType_UhkModule,
|
||||
BridgeSlaveType_Touchpad
|
||||
} bridge_slave_type_t;
|
||||
|
||||
typedef struct {
|
||||
uint8_t i2cAddress;
|
||||
bridge_slave_type_t type;
|
||||
bool isConnected;
|
||||
} bridge_slave_t;
|
||||
|
||||
// Functions:
|
||||
|
||||
void InitBridgeProtocolScheduler();
|
||||
void SetLeds(uint8_t ledBrightness);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user