home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / pc / BOBOLI.ZIP / SRC / COM.H < prev    next >
Encoding:
C/C++ Source or Header  |  1996-06-04  |  478 b   |  28 lines

  1. /*
  2.    COM port library header
  3.  */
  4.  
  5. #ifndef _com_gogo_
  6. #define _com_gogo_
  7.  
  8. #include "mgraph.h"
  9.  
  10. extern byte data_rcvd;
  11.  
  12. /* flags for initializing rs232 port */
  13. #define BITS_8      0x03
  14. #define BITS_7      0x02
  15. #define STOP_1      0x00
  16. #define STOP_2      0x04
  17. #define EVEN_PARITY 0x18
  18. #define ODD_PARITY  0x08
  19. #define NO_PARITY   0x00
  20.  
  21. #define baud_rate 9600
  22.  
  23. void init_rs232(byte which);
  24. void send_packet(byte packet);
  25. byte recv_packet(void);
  26.  
  27. #endif
  28.