gpioset.h 970 B

1234567891011121314151617181920212223
  1. typedef struct _ADJUST_GPIO {
  2. unsigned char GPIO[256];
  3. }ADJUST_GPIO, *PADJUST_GPIO;
  4. typedef struct _ADJUST_GPIO_ITEM { //
  5. unsigned char pGPIOData[256]; //0x7f8~0x8f7 struct ADJUST_GPIO will copy there
  6. }ADJUST_GPIO_ITEM, *PADJUST_GPIO_ITEM;
  7. typedef struct _GPIO_FORMAT {
  8. unsigned char index; // 0~63
  9. unsigned char AuxEnalbe; // Enable GPIO function 0:disable; 1:enable
  10. unsigned char AuxMode; // 0: output; 1: input; 2: open drain
  11. unsigned char AuxValue; // 0:low; 1:high
  12. unsigned char AInternalPU; // 0:disable/1:enable pull high
  13. unsigned char AInternalPD; // 0:disable/1:enable pull low
  14. unsigned char MainEnalbe; // Enable GPIO function 0:disable; 1:enable
  15. unsigned char MainMode; // 0: output; 1: input; 2: open drain
  16. unsigned char MainValue; // 0:low; 1:high
  17. unsigned char MInternalPU; // 0:disable/1:enable pull high
  18. unsigned char MInternalPD; // 0:disable/1:enable pull low
  19. unsigned char MDELAY_TIME;
  20. }GPIO_FORMAT, *PGPIO_FORMAT;