/* This file is autogenerated using make-stubs.sh, do not edit */

#ifndef _robios_c_protos_h
#define _robios_c_protos_h

#include "types.h"
#include "kern.h"

__ROBIOS_BEGIN_DECLS

BOOL PSDCheck (void) ; 
BYTE OSReadInLatch (int latchnr) ; 
BYTE OSReadOutLatch (int latchnr) ; 
BYTE OSReadParCTRL (void) ; 
BYTE OSReadParData (void) ; 
BYTE OSReadParSR (void) ; 
BYTE OSWriteOutLatch (int latchnr, BYTE mask, BYTE value) ; 
BumpHandle BUMPInit (DeviceSemantics semantics) ; 
DeviceSemantics QUADGetMotor (DeviceSemantics semantics) ; 
IRHandle IRInit (DeviceSemantics semantics) ; 
MotorHandle MOTORInit (DeviceSemantics semantics) ; 
PSDHandle PSDInit (DeviceSemantics semantics) ; 
QuadHandle QUADInit (DeviceSemantics semantics) ; 
ServoHandle SERVOInit (DeviceSemantics semantics) ; 
TimerHandle OSAttachTimer (int scale, TimerFnc function) ; 
VWHandle VWInit (DeviceSemantics semantics, int Timescale) ; 
char * OSMachineName (void) ; 
const char * OSVersion (void) ; 
float QUADODORead (QuadHandle handle) ; 
float VWDriveRemain (VWHandle handle) ; 
int AUBeep (void) ; 
int AUCaptureMic (void) ; 
int AUCheckRecord (void) ; 
int AUCheckSample (void) ; 
int AUCheckTone (void) ; 
int AUTone (int freq, int dur) ; 
int BUMPCheck (BumpHandle handle, int *time_stamp) ; 
int BUMPRelease (BumpHandle handle) ; 
int CAMGet (int *para1, int *para2, int *para3) ; 
int CAMGetColFrame (colimage * buf, int convert) ; 
int CAMGetFrame (image * buf) ; 
int CAMGetFrameBayer (BYTE *picture) ; 
int CAMGetFrameMono (BYTE *picture) ; 
int CAMGetFrameRGB (BYTE *picture) ; 
int CAMInit (int zoom) ; 
int CAMMode (int mode) ; 
int CAMRelease (void) ; 
int CAMSet (int para1, int para2, int para3) ; 
int COMPASSCalibrate (int mode) ; 
int COMPASSCheck (void) ; 
int COMPASSGet (void) ; 
int COMPASSInit (DeviceSemantics semantics) ; 
int COMPASSRelease (void) ; 
int COMPASSStart (BOOL cycle) ; 
int COMPASSStop (void) ; 
int IPColor2Grey (colimage *buf1, image *buf2) ; 
int IPDiffer (image *buf1, image *buf2, image *buf3) ; 
int IPDither (image *buf1, image *buf2) ; 
int IPLaplace (image *buf1, image *buf2) ; 
int IPSobel (image *buf1, image *buf2) ; 
int IRRead (IRHandle handle) ; 
int IRRelease (IRHandle handle) ; 
int IRTVDecodeRaw (const int bits[2], int count, int type) ; 
int IRTVGet (void) ; 
int IRTVInit (int type, int length, int tog_mask, int inv_mask, int mode, int bufsize, int delay) ; 
int IRTVInitHDT (DeviceSemantics semantics) ; 
int IRTVPressed (void) ; 
int IRTVRead (void) ; 
int KEYGet (void) ; 
int KEYGetBuf (char *buf) ; 
int KEYRead (void) ; 
int KEYWait (int key ) ; 
int LCDArea (int x1, int y1, int x2, int y2, int col) ; 
int LCDClear (void) ; 
int LCDGetPixel (int row, int col) ; 
int LCDGetPos (int *row, int *column) ; 
int LCDInvertPixel (int row, int col) ; 
int LCDLine (int x1, int y1, int x2, int y2, int col) ; 
int LCDMenu (const char *k0, const char *k1, const char *k2, const char *k3) ; 
int LCDMenuI (int key, const char *string) ; 
int LCDMode (int mode) ; 
int LCDPrintf (const char format[], ...) ; 
int LCDPutChar (char buf) ; 
int LCDPutColorGraphic (colimage *colimg) ; 
int LCDPutFloat (float f) ; 
int LCDPutFloatS (float f, int minsp, int decimals) ; 
int LCDPutGraphic (image *img) ; 
int LCDPutHex (int val) ; 
int LCDPutHex1 (int val) ; 
int LCDPutImage (BYTE *img) ; 
int LCDPutInt (int val) ; 
int LCDPutIntS (int val, int spaces) ; 
int LCDPutString (char *buf) ; 
int LCDSetChar (int row, int column, char ch) ; 
int LCDSetPixel (int row, int col, int value) ; 
int LCDSetPos (int row, int col) ; 
int LCDSetPrintf (unsigned int row, unsigned int column, const char format[], ...) ; 
int LCDSetString (int row, int col, char *buf) ; 
int MOTORDrive (MotorHandle handle,int speed) ; 
int MOTORRelease (MotorHandle handle) ; 
int OSCheckInRS232 (int face) ; 
int OSCheckOutRS232 (int face) ; 
int OSDetachTimer (TimerHandle handle) ; 
int OSDisable (void) ; 
int OSDownload (char *name,int *bytes,int baudrate, int handshake, int face) ; 
int OSEnable (void) ; 
int OSError (char *msg,int number,BOOL deadend) ; 
int OSExit (int code) ; 
int OSFlushInRS232 (int face) ; 
int OSFlushOutRS232 (int face) ; 
int OSForbid (void) ; 
int OSGetAD (int channel) ; 
int OSGetCount (void) ; 
int OSGetTime (int *hrs,int *mins,int *secs,int *ticks) ; 
int OSGetUID (struct tcb *thread) ; 
int OSGetVar (int varnum) ; 
int OSInitRS232 (int baudrate, int handshake, int face) ; 
int OSKill (struct tcb *thread) ; 
int OSMTInit (BYTE mode) ; 
int OSMTStatus (void) ; 
int OSMachineSpeed (void) ; 
int OSMachineType (void) ; 
int OSOffAD (int mode) ; 
int OSPanic (char *string) ; 
int OSPermit (void) ; 
int OSPutVar (int varnum, int value) ; 
int OSReady (struct tcb *thread) ; 
int OSRecvRS232 (char *chara, int face) ; 
int OSReschedule (void) ; 
int OSRun (struct tcb *thread) ; 
int OSSemInit (struct sem *sem, int val) ; 
int OSSemP (struct sem *sem) ; 
int OSSemV (struct sem *sem) ; 
int OSSendCharRS232 (const char ch, const int face) ; 
int OSSendRS232 (const char *ch, const int face) ; 
int OSSetTime (int hrs,int mins,int secs) ; 
int OSShowTime (void) ; 
int OSSleep (int hsecs) ; 
int OSSuspend (struct tcb *thread) ; 
int OSWait (int hsecs) ; 
int OSYield (void) ; 
int PSDGet (PSDHandle handle) ; 
int PSDGetRaw (PSDHandle handle) ; 
int PSDRelease (void) ; 
int PSDStart (PSDHandle bitmask, BOOL cycle) ; 
int PSDStop (void) ; 
int QUADODOReset (QuadHandle handle) ; 
int QUADRead (QuadHandle handle) ; 
int QUADRelease (QuadHandle handle) ; 
int QUADReset (QuadHandle handle) ; 
int RADIOCheck (void) ; 
int RADIOGetIoctl ( RadioIOParameters* radioParams ) ; 
int RADIOGetStatus (RadioStatus *s) ; 
int RADIOInit (void) ; 
int RADIORecv (BYTE* id, int* bytesReceived, BYTE* buffer) ; 
int RADIOSend (BYTE id, int byteCount, BYTE* buffer) ; 
int RADIOSetIoctl ( RadioIOParameters radioParams ) ; 
int RADIOTerm (void) ; 
int SERVORelease (ServoHandle handle) ; 
int SERVOSet (ServoHandle handle,int angle) ; 
int USRFlashClear (int slot, int magic) ; 
int USRFlashGetName (int slot, char* name) ; 
int USRFlashLoad (int slot, int magic) ; 
int USRFlashSave (int slot, int magic) ; 
int USRResident (char *name,BOOL mode) ; 
int USRStart (void) ; 
int VWDriveCurve (VWHandle handle, meter delta_l, radians delta_phi, meterPerSec v) ; 
int VWDriveDone (VWHandle handle) ; 
int VWDriveStraight (VWHandle handle, meter delta, meterPerSec v) ; 
int VWDriveTurn (VWHandle handle, radians delta, radPerSec w) ; 
int VWDriveWait (VWHandle handle) ; 
int VWGetPosition (VWHandle handle, PositionType* pos) ; 
int VWGetSpeed (VWHandle handle, SpeedType* vw) ; 
int VWRelease (VWHandle handle) ; 
int VWSetPosition (VWHandle handle, meter x, meter y, radians phi) ; 
int VWSetSpeed (VWHandle handle, meterPerSec v, radPerSec w) ; 
int VWStalled (VWHandle handle) ; 
int VWStartControl (VWHandle handle, float Vv, float Tv, float Vw, float Tw) ; 
int VWStopControl (VWHandle handle) ; 
long AUPlaySample (BYTE *sample ) ; 
long AURecordSample (BYTE *buf, long len, long freq) ; 
struct tcb * OSSpawn (char *name, void (*code)(void), int stksiz, int pri, int uid) ; 
unsigned char OSMachineID (void) ; 
void * HDTFindEntry (TypeID type_id,DeviceSemantics semantics) ; 
void IRTVFlush (void) ; 
void IRTVGetRaw (int bits[2], int *count, int *duration, int *id, int *clock) ; 
void IRTVTerm (void) ; 
void OSWriteParCTRL (BYTE value) ; 
void OSWriteParData (BYTE value) ; 

__ROBIOS_END_DECLS
#endif /* _robios_c_protos_h */

