Nexcom IPPC 1560T Manual de usuario Pagina 134

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 135
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 133
Copyright © 2014 NEXCOM International Co., Ltd. All Rights Reserved.
117
IPPC 1560T/1960T/2160P Series User Manual
Appendix A: GPI/O Programming Guide
GPIO programming sample code
#define GPIO_PORT 0x538
#define GPO0 (0x01 << 3)
#define GPO1 (0x01 << 6)
#define GPO2 (0x01 << 7)
#define GPO0_HI outportb(GPIO_PORT, 0x08)
#define GPO0_LO outportb(GPIO_PORT, 0x00)
#define GPO1_HI outportb(GPIO_PORT, 0x40)
#define GPO1_LO outportb(GPIO_PORT, 0x00)
#define GPO2_HI outportb(GPIO_PORT, 0x80)
#define GPO2_LO outportb(GPIO_PORT, 0x00)
void main(void)
{
GPO0_HI;
GPO1_LO;
GPO2_HI;
}
Vista de pagina 133
1 2 ... 129 130 131 132 133 134 135

Comentarios a estos manuales

Sin comentarios