Start to implement the fully asynchronous bridge protocol scheduler and use it to transfer key and LED state.

This commit is contained in:
László Monda
2017-02-03 01:37:25 +01:00
parent d8761a95ba
commit fc0fc4a3f4
8 changed files with 118 additions and 12 deletions

View 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