- Adapted indenation to new agreed upon system
- Fixed bad status in poldi zug driver
This commit is contained in:
61
ecb.h
61
ecb.h
@ -17,29 +17,28 @@
|
||||
|
||||
|
||||
typedef struct {
|
||||
unsigned char d; /* D register in Z80 */
|
||||
unsigned char e; /* E register in Z80 */
|
||||
unsigned char b; /* B register in Z80 */
|
||||
unsigned char c; /* C register in Z80 */
|
||||
} Z80_reg;
|
||||
unsigned char d; /* D register in Z80 */
|
||||
unsigned char e; /* E register in Z80 */
|
||||
unsigned char b; /* B register in Z80 */
|
||||
unsigned char c; /* C register in Z80 */
|
||||
} Z80_reg;
|
||||
|
||||
/*-----------------------------------------------------------------------*/
|
||||
|
||||
typedef struct __ECB *pECB;
|
||||
typedef struct __ECB *pECB;
|
||||
|
||||
int ecbExecute(pECB self, int func, Z80_reg in, Z80_reg *out);
|
||||
int ecbRead(pECB self, unsigned short address,
|
||||
void *buffer, int byteCount);
|
||||
int ecbWrite(pECB self, unsigned short address,
|
||||
void *buffer, int byteCount);
|
||||
int ecbDMARead(pECB self, unsigned short address, void *buffer,
|
||||
unsigned short byteCount);
|
||||
void ecbClear(pECB self);
|
||||
int fixECBError(pECB self);
|
||||
void ecbErrorDescription(pECB self, char *buffer,
|
||||
int maxBytes);
|
||||
int ecbAssignEncoder(pECB self, int encoder, int motorNumber);
|
||||
int ecbLoadEncoder(pECB self);
|
||||
int ecbExecute(pECB self, int func, Z80_reg in, Z80_reg * out);
|
||||
int ecbRead(pECB self, unsigned short address,
|
||||
void *buffer, int byteCount);
|
||||
int ecbWrite(pECB self, unsigned short address,
|
||||
void *buffer, int byteCount);
|
||||
int ecbDMARead(pECB self, unsigned short address, void *buffer,
|
||||
unsigned short byteCount);
|
||||
void ecbClear(pECB self);
|
||||
int fixECBError(pECB self);
|
||||
void ecbErrorDescription(pECB self, char *buffer, int maxBytes);
|
||||
int ecbAssignEncoder(pECB self, int encoder, int motorNumber);
|
||||
int ecbLoadEncoder(pECB self);
|
||||
|
||||
|
||||
|
||||
@ -47,23 +46,21 @@ typedef struct {
|
||||
|
||||
/*-----------------------------------------------------------------------*/
|
||||
|
||||
int MakeECB(SConnection *pCon, SicsInterp *pSics,
|
||||
void *pData,
|
||||
int ragc, char *argv[]);
|
||||
int MakeECB(SConnection * pCon, SicsInterp * pSics,
|
||||
void *pData, int ragc, char *argv[]);
|
||||
|
||||
|
||||
/*----------------------------------------------------------------------
|
||||
for byte packing. result must be an 32 bit integer
|
||||
----------------------------------------------------------------------*/
|
||||
typedef union /* Used to extract and load data to Z80 regs. */{
|
||||
unsigned int result;
|
||||
struct
|
||||
{
|
||||
unsigned char byt0; /* Least significant byte */
|
||||
unsigned char byt1;
|
||||
unsigned char byt2;
|
||||
unsigned char byt3; /* Most significant byte */
|
||||
}b;
|
||||
}Ecb_pack;
|
||||
typedef union { /* Used to extract and load data to Z80 regs. */
|
||||
unsigned int result;
|
||||
struct {
|
||||
unsigned char byt0; /* Least significant byte */
|
||||
unsigned char byt1;
|
||||
unsigned char byt2;
|
||||
unsigned char byt3; /* Most significant byte */
|
||||
} b;
|
||||
} Ecb_pack;
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user