jak-project/game/system/deci_common.h

23 lines
466 B
C
Raw Normal View History

#pragma once
2020-08-22 22:30:12 -04:00
#include "common/common_types.h"
2020-08-26 21:02:24 -04:00
2020-08-22 22:30:12 -04:00
struct Deci2Driver {
u16 protocol = 0;
void* opt = nullptr;
2020-08-26 01:21:33 -04:00
void (*handler)(s32 event, s32 param, void* opt) = nullptr;
2020-08-22 22:30:12 -04:00
u8 id = 0;
bool active = false;
void* recv_buffer = nullptr;
int recv_size = 0;
int available_to_receive = 0;
char pending_send = 0;
};
// handler event values
#define DECI2_READ 1
#define DECI2_READDONE 2
#define DECI2_WRITE 3
#define DECI2_WRITEDONE 4
#define DECI2_CHSTATUS 5