Controller - Institute of Transportation Engineers
Controller - Institute of Transportation Engineers
Controller - Institute of Transportation Engineers
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
4.2.7.2.3.3<br />
} uTMR;<br />
u_int32 timerTRR; /* timer reference register */<br />
u_int32 timerTCR; /* timer capture register */<br />
union<br />
{<br />
struct TER TER; /* timer event register */<br />
unsigned short ter;<br />
} uTER;<br />
} TTimer_opts;<br />
Standard OS-9 System Calls for the timers:<br />
error_code _os_open(char *timer_desc_name, u_int32 mode, path_id *path);<br />
error_code _os_close(path_id path);<br />
error_code _os_gs_popt(path_id path, u_int32 *size<strong>of</strong>(TTimer_opts), void<br />
*timer_opts);<br />
error_code _os_ss_popt(path_id path, u_int32 *size<strong>of</strong>(TTimer_opts), void<br />
*timer_opts);<br />
error_code _os_write(path_id path, void *timer_value, u_int32<br />
*size<strong>of</strong>(timer_value));<br />
error_code _os_read(path_id path, void *timer_value, u_int32<br />
*size<strong>of</strong>(timer_value));<br />
error_code _os_ss_sendsig(path_id path, signal_code timer_sig);<br />
error_code _os_ss_relea(path_id path);<br />
4.2.7.2.4<br />
The OS-9 System Calls shall provide access to the CPU Datakey and its control through<br />
the following descriptor name and OS-9 functions<br />
Descriptor name:<br />
datakey = CPU Datakey<br />
Function Calls:<br />
error_code_os_open(char*datakey_desc_name, path_id*path);<br />
error_code=E$NotRdy if CPU Datakey is not installed<br />
error_code_os_read(path_id_path, void*control,128);<br />
error_code=E$NotRdy if CPU Datakey is not inserted<br />
error_code_os_close(path_id path);<br />
4.2.7.2.5<br />
Standard for the ATC – Type 2070 March 29, 2001<br />
34