Moxa UC-8410A-T-LX [70/86] Uc 8410a series linux software programmer s guide

Moxa UC-8410A-T-LX [70/86] Uc 8410a series linux software programmer s guide
UC-8410A Series Linux Software Programmer’s Guide
6-8
Function RTC_ALM_READ
Description Reads the alarm time.
Usage struct rtc_time rtc_tm;
ioctl(fd, RTC_ALM_READ, &rtc_tm);
Function RTC_IRQP_SET
Description Sets the IRQ rate
Usage unsigned long tmp = 2;
int ioctl(fd, RTC_IRQP_SET, tmp);
value : {2, 4, 8, 16, 32,64}Hz
Function RTC_IRQP_READ
Description Reads the IRQ rate.
Usage unsigned long tmp;
int ioctl(fd, RTC_IRQP_READ, &tmp);
Function RTC_ALM_SET
Description Sets the alarm time.
Usage struct rtc_time rtc_tm;
ioctl(fd, RTC_ALM_SET, &rtc_tm);
Function RTC_PIE_ON
Description Periodic int. enable on
Usage int ioctl(fd, RTC_PIE_ON, 0);
Function RTC_PIE_OFF
Description Periodic int. enable off.
Usage int ioctl(fd, RTC_PIE_OFF, 0);
Function RTC_UIE_ON
Description Update int. enable on.
Usage int ioctl(fd, RTC_UIE_ON, 0);
Function RTC_UIE_OFF
Description Update int. enable off
Usage int ioctl(fd, RTC_UIE_OFF, 0);
Function RTC_AIE_ON
Description Periodic int. enable on
Usage int ioctl (fd, RTC_AIE_ON, 0);
Function RTC_AIE_OFF
Description Alarm int. enable off
Usage int ioctl (fd, RTC_AIE_OFF, 0);
Refer to the examples in the example package to see how to use these functions.

Содержание

Скачать