Nexcom NISE 4000P4E Uživatelský manuál Strana 128

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 128
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 127
Copyright © 2013 NEXCOM International Co., Ltd. All Rights Reserved.
113
NISE 4000P4E User Manual
Appendix C: GPI/O Programming Guide
GPIO programming sample code
#define GPO0_HI outportb(0xA03, 0x01)
#define GPO0_LO outportb(0xA03, 0x00)
#define GPO1_HI outportb(0xA03, 0x02)
#define GPO1_LO outportb(0xA03, 0x00)
#define GPO2_HI outportb(0xA03, 0x04)
#define GPO2_LO outportb(0xA03, 0x00)
#define GPO3_HI outportb(0xA03, 0x08)
#define GPO3_LO outportb(0xA03, 0x00)
void main(void)
{
GPO0_HI;
GPO1_LO;
GPO2_HI;
GPO3_LO;
}
Zobrazit stránku 127
1 2 ... 123 124 125 126 127 128

Komentáře k této Příručce

Žádné komentáře