change operands for some instructions and start work on devices
This commit is contained in:
15
src/device.h
15
src/device.h
@@ -1,5 +1,18 @@
|
||||
#pragma once
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
typedef struct {
|
||||
char name[32];
|
||||
|
||||
} Device;
|
||||
void (*sendToDevice)(uint16_t number);
|
||||
uint16_t (*receiveFromDevice)();
|
||||
void (*update)();
|
||||
} Device;
|
||||
|
||||
Device* createDevice(
|
||||
const char* name,
|
||||
void (*sendToDevice)(uint16_t number),
|
||||
uint16_t (*receiveFromDevice)(),
|
||||
void (*update)()
|
||||
);
|
||||
Reference in New Issue
Block a user