forked from Hay1tsme/segatools
LED board improvements and cleanup
This commit is contained in:
34
board/led15093-frame.h
Normal file
34
board/led15093-frame.h
Normal file
@ -0,0 +1,34 @@
|
||||
#pragma once
|
||||
|
||||
#include <windows.h>
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include "hook/iobuf.h"
|
||||
|
||||
enum {
|
||||
LED_15093_FRAME_SYNC = 0xE0,
|
||||
LED_15093_FRAME_ESC = 0xD0,
|
||||
};
|
||||
|
||||
struct led15093_req_hdr {
|
||||
uint8_t sync;
|
||||
uint8_t dest_adr;
|
||||
uint8_t src_adr;
|
||||
uint8_t nbytes;
|
||||
};
|
||||
|
||||
struct led15093_resp_hdr {
|
||||
uint8_t sync;
|
||||
uint8_t dest_adr;
|
||||
uint8_t src_adr;
|
||||
uint8_t nbytes;
|
||||
};
|
||||
|
||||
HRESULT led15093_frame_decode(struct iobuf *dest, struct iobuf *src);
|
||||
|
||||
HRESULT led15093_frame_encode(
|
||||
struct iobuf *dest,
|
||||
const void *ptr,
|
||||
size_t nbytes);
|
Reference in New Issue
Block a user