#ifndef __zl_bus_h__
#define __zl_bus_h__


#ifdef __cplusplus
extern "C" {
#endif

/*
 * I/O routines (bus)
 */

void zarlinkIndexedWrite(unsigned short, unsigned char);
unsigned char zarlinkIndexedRead(unsigned short);
void zarlinkCommandWrite(unsigned char);
unsigned char zarlinkStatusRead(void);
void zarlinkFrameWrite(unsigned short);
void zarlinkFrameWrite8(unsigned char);
unsigned short zarlinkFrameRead(void);
void zarlinkCtrlBuffer1Write(unsigned short);
unsigned short zarlinkCtrlBuffer1Read(void);
unsigned short zarlinkCtrlBuffer2Read(void);
void zarlinkInterruptWrite(unsigned char);
unsigned char zarlinkInterruptRead(void);

#ifdef __cplusplus
}
#endif

#endif /* __zl_bus_h__ */

