gio.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /** @file gio.h
  2. * @brief GIO Driver Definition File
  3. * @date 29.May.2013
  4. * @version 03.05.02
  5. *
  6. */
  7. /* (c) Texas Instruments 2009-2013, All rights reserved. */
  8. #ifndef __GIO_H__
  9. #define __GIO_H__
  10. #include "reg_gio.h"
  11. /**
  12. * @defgroup GIO GIO
  13. * @brief General-Purpose Input/Output Module.
  14. *
  15. * The GIO module provides the family of devices with input/output (I/O) capability.
  16. * The I/O pins are bidirectional and bit-programmable.
  17. * The GIO module also supports external interrupt capability.
  18. *
  19. * Related Files
  20. * - reg_gio.h
  21. * - gio.h
  22. * - gio.c
  23. * @addtogroup GIO
  24. * @{
  25. */
  26. /* GIO Interface Functions */
  27. void gioInit(void);
  28. void gioSetDirection(gioPORT_t *port, uint32 dir);
  29. void gioSetBit(gioPORT_t *port, uint32 bit, uint32 value);
  30. void gioSetPort(gioPORT_t *port, uint32 value);
  31. uint32 gioGetBit(gioPORT_t *port, uint32 bit);
  32. uint32 gioGetPort(gioPORT_t *port);
  33. void gioToggleBit(gioPORT_t *port, uint32 bit);
  34. void gioEnableNotification(gioPORT_t *port, uint32 bit);
  35. void gioDisableNotification(gioPORT_t *port, uint32 bit);
  36. void gioNotification(gioPORT_t *port, sint32 bit);
  37. /**@}*/
  38. #endif