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

#ifndef _robios_ckernel_h
#define _robios_ckernel_h

#include "types.h"

__ROBIOS_BEGIN_DECLS


extern int AU_Beep (void) ; 
extern int AU_CaptureMic (void) ; 
extern int AU_CheckRecord (void) ; 
extern int AU_CheckSample (void) ; 
extern int AU_CheckTone (void) ; 
extern long AU_PlaySample (BYTE *sample ) ; 
extern long AU_RecordSample (BYTE *buf, long len, long freq) ; 
extern int AU_Tone (int freq, int dur) ; 
extern int BUMP_Check (BumpHandle handle, int *time_stamp) ; 
extern BumpHandle BUMP_Init (DeviceSemantics semantics) ; 
extern int BUMP_Release (BumpHandle handle) ; 
extern int CAM_Get (int *para1, int *para2, int *para3) ; 
extern int CAM_GetColFrame (colimage * buf, int convert) ; 
extern int CAM_GetFrame (image * buf) ; 
extern int CAM_GetFrameBayer (BYTE *picture) ; 
extern int CAM_GetFrameMono (BYTE *picture) ; 
extern int CAM_GetFrameRGB (BYTE *picture) ; 
extern int CAM_Init (int zoom) ; 
extern int CAM_Mode (int mode) ; 
extern int CAM_Release (void) ; 
extern int CAM_Set (int para1, int para2, int para3) ; 
extern int COMPASS_Calibrate (int mode) ; 
extern int COMPASS_Check (void) ; 
extern int COMPASS_Get (void) ; 
extern int COMPASS_Init (DeviceSemantics semantics) ; 
extern int COMPASS_Release (void) ; 
extern int COMPASS_Start (BOOL cycle) ; 
extern int COMPASS_Stop (void) ; 
extern void * HDT_FindEntry (TypeID type_id,DeviceSemantics semantics) ; 
extern int IP_Color2Grey (colimage *buf1, image *buf2) ; 
extern int IP_Differ (image *buf1, image *buf2, image *buf3) ; 
extern int IP_Dither (image *buf1, image *buf2) ; 
extern int IP_Laplace (image *buf1, image *buf2) ; 
extern int IP_Sobel (image *buf1, image *buf2) ; 
extern IRHandle IR_Init (DeviceSemantics semantics) ; 
extern int IR_Read (IRHandle handle) ; 
extern int IR_Release (IRHandle handle) ; 
extern int IRTV_DecodeRaw (const int bits[2], int count, int type) ; 
extern void IRTV_Flush (void) ; 
extern int IRTV_Get (void) ; 
extern void IRTV_GetRaw (int bits[2], int *count, int *duration, int *id, int *clock) ; 
extern int IRTV_Init (int type, int length, int tog_mask, int inv_mask, int mode, int bufsize, int delay) ; 
extern int IRTV_InitHDT (DeviceSemantics semantics) ; 
extern int IRTV_Pressed (void) ; 
extern int IRTV_Read (void) ; 
extern void IRTV_Term (void) ; 
extern int KEY_Get (void) ; 
extern int KEY_GetBuf (char *buf) ; 
extern int KEY_Read (void) ; 
extern int KEY_Wait (int key ) ; 
extern int LCD_Area (int x1, int y1, int x2, int y2, int col) ; 
extern int LCD_Clear (void) ; 
extern int LCD_GetPixel (int row, int col) ; 
extern int LCD_GetPos (int *row, int *column) ; 
extern int LCD_InvertPixel (int row, int col) ; 
extern int LCD_Line (int x1, int y1, int x2, int y2, int col) ; 
extern int LCD_Menu (const char *k0, const char *k1, const char *k2, const char *k3) ; 
extern int LCD_MenuI (int key, const char *string) ; 
extern int LCD_Mode (int mode) ; 
extern int LCD_Printf (const char format[], ...) ; 
extern int LCD_PutChar (char buf) ; 
extern int LCD_PutColorGraphic (colimage *colimg) ; 
extern int LCD_PutFloat (float f) ; 
extern int LCD_PutFloatS (float f, int minsp, int decimals) ; 
extern int LCD_PutGraphic (image *img) ; 
extern int LCD_PutHex (int val) ; 
extern int LCD_PutHex1 (int val) ; 
extern int LCD_PutImage (BYTE *img) ; 
extern int LCD_PutInt (int val) ; 
extern int LCD_PutIntS (int val, int spaces) ; 
extern int LCD_PutString (char *buf) ; 
extern int LCD_SetChar (int row, int column, char ch) ; 
extern int LCD_SetPixel (int row, int col, int value) ; 
extern int LCD_SetPos (int row, int col) ; 
extern int LCD_SetPrintf (unsigned int row, unsigned int column, const char format[], ...) ; 
extern int LCD_SetString (int row, int col, char *buf) ; 
extern int MOTOR_Drive (MotorHandle handle,int speed) ; 
extern MotorHandle MOTOR_Init (DeviceSemantics semantics) ; 
extern int MOTOR_Release (MotorHandle handle) ; 
extern TimerHandle OS_AttachTimer (int scale, TimerFnc function) ; 
extern int OS_CheckInRS232 (int face) ; 
extern int OS_CheckOutRS232 (int face) ; 
extern int OS_DetachTimer (TimerHandle handle) ; 
extern int OS_Disable (void) ; 
extern int OS_Download (char *name,int *bytes,int baudrate, int handshake, int face) ; 
extern int OS_Enable (void) ; 
extern int OS_Error (char *msg,int number,BOOL deadend) ; 
extern int OS_Exit (int code) ; 
extern int OS_FlushInRS232 (int face) ; 
extern int OS_FlushOutRS232 (int face) ; 
extern int OS_Forbid (void) ; 
extern int OS_GetAD (int channel) ; 
extern int OS_GetCount (void) ; 
extern int OS_GetTime (int *hrs,int *mins,int *secs,int *ticks) ; 
extern int OS_GetUID (struct tcb *thread) ; 
extern int OS_GetVar (int varnum) ; 
extern int OS_InitRS232 (int baudrate, int handshake, int face) ; 
extern int OS_Kill (struct tcb *thread) ; 
extern int OS_MTInit (BYTE mode) ; 
extern int OS_MTStatus (void) ; 
extern unsigned char OS_MachineID (void) ; 
extern char * OS_MachineName (void) ; 
extern int OS_MachineSpeed (void) ; 
extern int OS_MachineType (void) ; 
extern int OS_OffAD (int mode) ; 
extern int OS_Panic (char *string) ; 
extern int OS_Permit (void) ; 
extern int OS_PutVar (int varnum, int value) ; 
extern BYTE OS_ReadInLatch (int latchnr) ; 
extern BYTE OS_ReadOutLatch (int latchnr) ; 
extern BYTE OS_ReadParCTRL (void) ; 
extern BYTE OS_ReadParData (void) ; 
extern BYTE OS_ReadParSR (void) ; 
extern int OS_Ready (struct tcb *thread) ; 
extern int OS_RecvRS232 (char *chara, int face) ; 
extern int OS_Reschedule (void) ; 
extern int OS_Run (struct tcb *thread) ; 
extern int OS_SemInit (struct sem *sem, int val) ; 
extern int OS_SemP (struct sem *sem) ; 
extern int OS_SemV (struct sem *sem) ; 
extern int OS_SendCharRS232 (const char ch, const int face) ; 
extern int OS_SendRS232 (const char *ch, const int face) ; 
extern int OS_SetTime (int hrs,int mins,int secs) ; 
extern int OS_ShowTime (void) ; 
extern int OS_Sleep (int hsecs) ; 
extern struct tcb * OS_Spawn (char *name, void (*code)(void), int stksiz, int pri, int uid) ; 
extern int OS_Suspend (struct tcb *thread) ; 
extern const char * OS_Version (void) ; 
extern int OS_Wait (int hsecs) ; 
extern BYTE OS_WriteOutLatch (int latchnr, BYTE mask, BYTE value) ; 
extern void OS_WriteParCTRL (BYTE value) ; 
extern void OS_WriteParData (BYTE value) ; 
extern int OS_Yield (void) ; 
extern BOOL PSD_Check (void) ; 
extern int PSD_Get (PSDHandle handle) ; 
extern int PSD_GetRaw (PSDHandle handle) ; 
extern PSDHandle PSD_Init (DeviceSemantics semantics) ; 
extern int PSD_Release (void) ; 
extern int PSD_Start (PSDHandle bitmask, BOOL cycle) ; 
extern int PSD_Stop (void) ; 
extern DeviceSemantics QUAD_GetMotor (DeviceSemantics semantics) ; 
extern QuadHandle QUAD_Init (DeviceSemantics semantics) ; 
extern float QUAD_ODORead (QuadHandle handle) ; 
extern int QUAD_ODOReset (QuadHandle handle) ; 
extern int QUAD_Read (QuadHandle handle) ; 
extern int QUAD_Release (QuadHandle handle) ; 
extern int QUAD_Reset (QuadHandle handle) ; 
extern int RADIO_Check (void) ; 
extern int RADIO_GetIoctl ( RadioIOParameters* radioParams ) ; 
extern int RADIO_GetStatus (RadioStatus *s) ; 
extern int RADIO_Init (void) ; 
extern int RADIO_Recv (BYTE* id, int* bytesReceived, BYTE* buffer) ; 
extern int RADIO_Send (BYTE id, int byteCount, BYTE* buffer) ; 
extern int RADIO_SetIoctl ( RadioIOParameters radioParams ) ; 
extern int RADIO_Term (void) ; 
extern ServoHandle SERVO_Init (DeviceSemantics semantics) ; 
extern int SERVO_Release (ServoHandle handle) ; 
extern int SERVO_Set (ServoHandle handle,int angle) ; 
extern int USR_FlashClear (int slot, int magic) ; 
extern int USR_FlashGetName (int slot, char* name) ; 
extern int USR_FlashLoad (int slot, int magic) ; 
extern int USR_FlashSave (int slot, int magic) ; 
extern int USR_Resident (char *name,BOOL mode) ; 
extern int USR_Start (void) ; 
extern int VW_DriveCurve (VWHandle handle, meter delta_l, radians delta_phi, meterPerSec v) ; 
extern int VW_DriveDone (VWHandle handle) ; 
extern float VW_DriveRemain (VWHandle handle) ; 
extern int VW_DriveStraight (VWHandle handle, meter delta, meterPerSec v) ; 
extern int VW_DriveTurn (VWHandle handle, radians delta, radPerSec w) ; 
extern int VW_DriveWait (VWHandle handle) ; 
extern int VW_GetPosition (VWHandle handle, PositionType* pos) ; 
extern int VW_GetSpeed (VWHandle handle, SpeedType* vw) ; 
extern VWHandle VW_Init (DeviceSemantics semantics, int Timescale) ; 
extern int VW_Release (VWHandle handle) ; 
extern int VW_SetPosition (VWHandle handle, meter x, meter y, radians phi) ; 
extern int VW_SetSpeed (VWHandle handle, meterPerSec v, radPerSec w) ; 
extern int VW_Stalled (VWHandle handle) ; 
extern int VW_StartControl (VWHandle handle, float Vv, float Tv, float Vw, float Tw) ; 
extern int VW_StopControl (VWHandle handle) ; 

__ROBIOS_END_DECLS

#endif /* _robios_ckernel_h */
