Logo Search packages:      
Sourcecode: picp version File versions

serial.h

//-----------------------------------------------------------------------------
//
//    PICSTART Plus programming interface
//
//-----------------------------------------------------------------------------
//
//    Cosmodog, Ltd.
//    415 West Huron Street
//    Chicago, IL   60610
//    http://www.cosmodog.com
//
//-----------------------------------------------------------------------------

#ifndef __SERIAL_H_
#define __SERIAL_H_

bool  ByteWaiting(int theDevice, unsigned int timeOut);
unsigned int      ReadBytes(int theDevice, unsigned char *theBytes, unsigned int maxBytes, unsigned int timeOut);
void  WriteBytes(int theDevice, unsigned char *theBytes, unsigned int numBytes);
void  FlushBytes(int theDevice);
bool  ConfigureDevice(int theDevice, unsigned int baudRate, unsigned char dataBits, unsigned char stopBits, unsigned char parity, bool cooked);
void  GetDeviceConfiguration(int theDevice, unsigned int *baudRate, unsigned char *dataBits, unsigned char *stopBits, unsigned char *parity);
bool  ConfigureFlowControl(int theDevice, bool wantControl);
void  GetDeviceStatus(int theDevice,bool *CTS,bool *DCD);
void  SetDTR(int theDevice, bool DTR);
bool  OpenDevice(char *theName, int *theDevice);
void  CloseDevice(int theDevice);

#endif // defined __SERIAL_H_


Generated by  Doxygen 1.6.0   Back to index