Lanner LVC-5000(N4) Instrukcja Użytkownika Strona 33

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 42
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 32
33
Digital Input/Output Control
Appendix B
Embedded and Industrial Computing
exit_SIO_config();
return;
}
void dio_set_output(unsigned char out_value)
{
enter_SIO_config();
write_SIO_reg(0x6, 0xf1, ((read_SIO_reg(0x6,
0xf1)& 0xF0)|out_value));
exit_SIO_config();
return;
}
unsigned int dio_get_input(void)
{
unsigned int tmp=0x00;
enter_SIO_config();
tmp=read_SIO_reg(0x6, 0xA2)& 0x0f;
exit_SIO_config();
return tmp;
}
//======================================
========================================
=================
#endif
Przeglądanie stron 32
1 2 ... 28 29 30 31 32 33 34 35 36 37 38 ... 41 42

Komentarze do niniejszej Instrukcji

Brak uwag