Lanner LVC-5770 Instrukcja Użytkownika Strona 39

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 49
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 38
39
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 38
1 2 ... 34 35 36 37 38 39 40 41 42 43 44 ... 48 49

Komentarze do niniejszej Instrukcji

Brak uwag