autopoll.h 1.5 KB

1234567891011121314151617181920212223242526272829303132
  1. /***************************************************************************
  2. sys/autopoll.h
  3. -------------------
  4. copyright : (C) 2002 by Frank Mori Hess
  5. email : fmhess@users.sourceforge.net
  6. ***************************************************************************/
  7. /***************************************************************************
  8. * *
  9. * This program is free software; you can redistribute it and/or modify *
  10. * it under the terms of the GNU General Public License as published by *
  11. * the Free Software Foundation; either version 2 of the License, or *
  12. * (at your option) any later version. *
  13. * *
  14. ***************************************************************************/
  15. #ifndef GPIB_AUTOPOLL_H
  16. #define GPIB_AUTOPOLL_H
  17. #include "gpib_types.h"
  18. unsigned int num_status_bytes( const gpib_status_queue_t *dev );
  19. int push_status_byte( gpib_status_queue_t *device, uint8_t poll_byte );
  20. int pop_status_byte( gpib_status_queue_t *device, uint8_t *poll_byte );
  21. gpib_status_queue_t * get_gpib_status_queue( gpib_board_t *board, unsigned int pad, int sad );
  22. int get_serial_poll_byte( gpib_board_t *board, unsigned int pad, int sad,
  23. unsigned int usec_timeout, uint8_t *poll_byte );
  24. int autopoll_all_devices( gpib_board_t *board );
  25. #endif // GPIB_AUTOPOLL_H