CALIBRE

3.2.Function Prototypes

If you are using ‘C’ or ‘C++’ copy the file CALUCA.H into the directory containing your project and add the line:

#include " CALUCA.H"

The following functions are implemented in the windows libraries:-

extern __declspec(dllimport) int WINAPI Setup (int, int, int, int, int); extern __declspec(dllimport) int WINAPI SendAddress (int, int); extern __declspec(dllimport) int WINAPI WriteByte(int);

extern __declspec(dllimport) int WINAPI ReadByte(int); extern __declspec(dllimport) int WINAPI SendStop(void); extern __declspec(dllimport) int WINAPI Restart (int, int); extern __declspec(dllimport) int WINAPI GetStatus(void); extern __declspec(dllimport) int WINAPI recover(void); extern __declspec(dllimport) void WINAPI SlaveLastByte(void); extern __declspec(dllimport) int WINAPI DLLVersion(void);

extern __declspec(dllimport) void WINAPI SendAddressNoStatus(int , int, int); extern __declspec(dllimport) void WINAPI RestartNoStatus(int , int, int ); extern __declspec(dllimport) void WINAPI WriteByteNoStatus(int );

extern __declspec(dllimport) void WINAPI ReadByteNoStatus(int ); extern __declspec(dllimport) void WINAPI SendStopNoStatus(void);

extern __declspec(dllimport) int WINAPI SetBlockData(int); extern __declspec(dllimport) int WINAPI BlockWriteStatus (void); extern __declspec(dllimport) int WINAPI BlockWrite(int , int , int ,int, int ); extern __declspec(dllimport) int WINAPI GetBlockData(void);

extern __declspec(dllimport) int WINAPI BlockReadStatus(void);

extern __declspec(dllimport) int WINAPI BlockRead(int , int , int , int, int ); extern __declspec(dllimport) int WINAPI BlockSlaveTransmitterStatus(void); extern __declspec(dllimport) int WINAPI BlockSlaveTransmitter( int ); extern __declspec(dllimport) int WINAPI BlockSlaveReceiverStatus(void); extern __declspec(dllimport) int WINAPI BlockSlaveReceiver(int , int ); extern __declspec(dllimport) int WINAPI Write_IO_Pin (int , int );

extern __declspec(dllimport) int WINAPI Read_IO_Pin (int ); extern __declspec(dllimport) int WINAPI CheckBusVoltage(void); extern __declspec(dllimport) int WINAPI CheckPullupVoltage(void);

Issue 1.0

Page 5

01/07/03

 

Page 8
Image 8
Calibre UK UCA93 manual Function Prototypes