Controller - Institute of Transportation Engineers
Controller - Institute of Transportation Engineers
Controller - Institute of Transportation Engineers
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
4.2.7.2.6<br />
The device shall provide four input buffering modes as follows:<br />
1.Line - characters are buffered up to and including a programmable termination<br />
character.<br />
2. Fixed - a fixed specific number <strong>of</strong> characters is buffered by the driver (1 @ 1200bps, 2<br />
@ 2400bps, 4 @ 4800 bps, 8 @ 9600 bps, and 16 @ 19200 bps & above)<br />
3.Timed- characters are buffered until a programmable inter-character time out occurs.<br />
4. Raw – characters are unbuffered and delivered to the task as received.<br />
4.2.7.2.7<br />
Line, Fixed, and Timed Modes shall be capable <strong>of</strong> being used together. Raw mode shall<br />
disable all other buffering modes.<br />
4.2.7.2.8<br />
Device drivers compliant with the OS-9 SCFMAN shall be provided for CPU Activity<br />
LED Indicator and Day Light Savings time correction features. The descriptor names<br />
shall be as follows:<br />
led<br />
dstclock<br />
= access to CPU Activity LED Indicator<br />
= access to Daylight Savings Time Clock correction<br />
The standard OS-9 SCFMAN library calls and their functions are as follows:<br />
error_code _os_open (char *desc_name, path_id *path); //open descriptor for command<br />
error_code _os_close (path_id path);<br />
//close descriptor<br />
error_code _os_write (path_id path, void *value, 1); //set value or function<br />
*value = 1, turn led on or turn DLSclock feature on (default)<br />
*value = 0, turn led <strong>of</strong>f or turn DLSclock feature <strong>of</strong>f<br />
error_code _os_read (path_id path, void *value, 1); //get current state<br />
4.2.7.2.9 Time-<strong>of</strong>-Day (TOD) Clock<br />
The OS-9 operating system’s TOD Clock shall be driven by the LINESYNC derived OS-<br />
9 Operating System TICK Timer. The device shall provide the following features to<br />
support the TOD operation and synchronization.<br />
4.2.7.2.9.1<br />
Leap Year and Daylight Savings Time (DST) Adjustments - The OS-9 System clock /<br />
calendar shall automatically be adjusted to account for DST and leap years. A SCFMAN<br />
driver shall be provided to enable/disable the automatic DST adjustment.<br />
Standard for the ATC – Type 2070 March 29, 2001<br />
38