Maxim-integrated 73M1822/73M1922 Control Module Instrukcja Użytkownika Strona 51

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 86
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 50
UG_1x22_053 73M1822/73M1922 Control Module User Guide
Rev. 1.0 51
The following example code illustrates a reading of a line voltage IET table entry.
M1X22_MEASURE_UPDATE_t read;
int ret;
read.row = 5; /* read row 5 of voltage IET table */
read.action = M1X22_MEASURE_ACTION_GET; /* request for GET operation */
read.entity = M1X22_MEASURE_ENTITY_VOLTAGE; /* measuring entity= voltage */
ret = ioctl (fd, M1X22_MEASURE_UPDATE, &read);
if (ret < 0)
printf (“Failed to read voltage IET entry”);
else {
printf (“\nReading voltage IET table entry row: %d”, read.row);
printf (“\nInterval min: %d”, read.interval_min);
printf (“\nInterval max: %d”, read.interval_max);
printf (“\nEvent : 0x%08X”, read.event);
}
Przeglądanie stron 50
1 2 ... 46 47 48 49 50 51 52 53 54 55 56 ... 85 86

Komentarze do niniejszej Instrukcji

Brak uwag