comm.c 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. /*****************************************************************************/
  2. /* ここから */
  3. /*****************************************************************************/
  4. #include <stdio.h>
  5. #include <stdlib.h>
  6. #include <sys/comm.h>
  7. #include "wonx.h"
  8. /*****************************************************************************/
  9. /* メンバ関数の定義 */
  10. /*****************************************************************************/
  11. void comm_open(void)
  12. {}
  13. void comm_close(void)
  14. {}
  15. int comm_send_char(unsigned char byte)
  16. {
  17. return (0);
  18. }
  19. int comm_receive_char(void)
  20. {
  21. return (0);
  22. }
  23. int comm_receive_with_timeout(int timeout)
  24. {
  25. return (0);
  26. }
  27. int comm_send_string(char * string)
  28. {
  29. return (0);
  30. }
  31. int comm_send_block(void * buffer, int size)
  32. {
  33. return (0);
  34. }
  35. int comm_receive_block(void * buffer, int size)
  36. {
  37. return (0);
  38. }
  39. void comm_set_timeout(int receive_timeout, int send_timeout)
  40. {
  41. }
  42. void comm_set_baudrate(int speed)
  43. {
  44. }
  45. int comm_get_baudrate(void)
  46. {
  47. return (0);
  48. }
  49. void comm_set_cancel_key(unsigned int pattern)
  50. {
  51. }
  52. unsigned int comm_get_cancel_key(void)
  53. {
  54. return (0);
  55. }
  56. /*
  57. int comm_xmodem(void * xmodem)
  58. {
  59. return (0);
  60. }
  61. */