Download Protocol Manual - Connect Tech Inc.
Transcript
Protocol Reference Requirements Protocol version 10 or greater General message No Port message Yes Async Yes Sync Yes Port state must be Open See Also GET_RTC_GATE SET_RTC_ALARM SET_RTC_CLOCK SET_RTC_MODE SET_LINE2 SET_RTC_MODE The SET_RTC_MODE message is used to change the operational mode of the RTC. Message Message Number 60 (0x3C) Port Number Number of port in which to change the RTC mode. Data Length 1 byte Data struct bhn_rtc_mode uint8 mode mode mode can be one or more of the following values: Value 1 (0x01) 2 (0x02) 4 (0x04) 16 (0x10) Name RTC_MINUTE_RISING RTC_EXT_TIMEBASE RTC_SEC_RISING RTC_MINUTE_ONCE Description Minutes pulse on rising edge (otherwise falling edge). Select external timebase (otherwise internal timebase). Seconds pulse on rising edge (otherwise falling edge). Arm the mode where; The minute pulse is recognized only once, and the clock incrementing is masked until the minute pulse occurs. See also CANCEL_RTC_MPO. Response Status Status Value 0 (0x00) 11 (0x0B) Status Name CMD_OK BHN_ERROR_PROTO_LEN 13 (0x0D) BHN_ERROR_CLOSED 14 (0x0E) BHN_ERROR_HW_TYPE Description The SET_RTC_MODE message succeeded. The data length specified in the message header is invalid. The port is currently closed, but SET_RTC_MODE requires it to be open. The underlying port hardware does not support the SET_RTC_MODE message. Data Length 0 bytes CTIM-00049 65