Rename bridge_protocol_scheduler.[ch] to slave_scheduler.[ch]
This commit is contained in:
29
right/src/slave_scheduler.h
Normal file
29
right/src/slave_scheduler.h
Normal file
@@ -0,0 +1,29 @@
|
||||
#ifndef __BRIDGE_PROTOCOL_SCHEDULER_H__
|
||||
#define __BRIDGE_PROTOCOL_SCHEDULER_H__
|
||||
|
||||
// Includes:
|
||||
|
||||
#include "fsl_common.h"
|
||||
|
||||
// Typedefs:
|
||||
|
||||
typedef enum {
|
||||
UhkSlaveType_LedDriver,
|
||||
UhkSlaveType_UhkModule,
|
||||
UhkSlaveType_Touchpad
|
||||
} uhk_slave_type_t;
|
||||
|
||||
typedef bool (slave_handler_t)(uint8_t);
|
||||
|
||||
typedef struct {
|
||||
uint8_t moduleId; // This is a unique, per-module ID.
|
||||
slave_handler_t *slaveHandler;
|
||||
bool isConnected;
|
||||
} uhk_slave_t;
|
||||
|
||||
// Functions:
|
||||
|
||||
void InitBridgeProtocolScheduler();
|
||||
void SetLeds(uint8_t ledBrightness);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user