📄 syslib.html
字号:
</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./sysLib.html#top">sysLib</a></b>, <b><i><a href="./sysLib.html#sysAuxClkEnable">sysAuxClkEnable</a></i>( )</b><hr><a name="sysAuxClkEnable"></a><p align=right><a href="rtnIndex.html"><i>ns486 : Routines</i></a></p></blockquote><h1><i>sysAuxClkEnable</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>sysAuxClkEnable</i>( )</strong> - turn on auxiliary clock interrupts</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void sysAuxClkEnable (void)</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine enables auxiliary clock interrupts.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./sysLib.html#top">sysLib</a></b>, <b><i><a href="./sysLib.html#sysAuxClkConnect">sysAuxClkConnect</a></i>( )</b>, <b><i><a href="./sysLib.html#sysAuxClkDisable">sysAuxClkDisable</a></i>( )</b>, <b><i><a href="./sysLib.html#sysAuxClkRateSet">sysAuxClkRateSet</a></i>( )</b><hr><a name="sysAuxClkRateGet"></a><p align=right><a href="rtnIndex.html"><i>ns486 : Routines</i></a></p></blockquote><h1><i>sysAuxClkRateGet</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>sysAuxClkRateGet</i>( )</strong> - get the auxiliary clock rate</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>int sysAuxClkRateGet (void)</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine returns the interrupt rate of the auxiliary clock.<p></blockquote><h4>RETURNS</h4><blockquote><p>The number of ticks per second of the auxiliary clock.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./sysLib.html#top">sysLib</a></b>, <b><i><a href="./sysLib.html#sysAuxClkEnable">sysAuxClkEnable</a></i>( )</b>, <b><i><a href="./sysLib.html#sysAuxClkRateSet">sysAuxClkRateSet</a></i>( )</b><hr><a name="sysAuxClkRateSet"></a><p align=right><a href="rtnIndex.html"><i>ns486 : Routines</i></a></p></blockquote><h1><i>sysAuxClkRateSet</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>sysAuxClkRateSet</i>( )</strong> - set the auxiliary clock rate</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS sysAuxClkRateSet ( int ticksPerSecond /* number of clock interrupts per second */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine sets the interrupt rate of the auxiliary clock. It does notenable auxiliary clock interrupts.<p></blockquote><h4>RETURNS</h4><blockquote><p>OK, or ERROR if the tick rate is invalid or the timer cannot be set.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./sysLib.html#top">sysLib</a></b>, <b><i><a href="./sysLib.html#sysAuxClkEnable">sysAuxClkEnable</a></i>( )</b>, <b><i><a href="./sysLib.html#sysAuxClkRateGet">sysAuxClkRateGet</a></i>( )</b><hr><a name="sysNvRamGet"></a><p align=right><a href="rtnIndex.html"><i>ns486 : Routines</i></a></p></blockquote><h1><i>sysNvRamGet</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>sysNvRamGet</i>( )</strong> - get the contents of non-volatile RAM</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS sysNvRamGet ( char * string, /* where to copy non-volatile RAM */ int strLen, /* maximum number of bytes to copy */ int offset /* byte offset into non-volatile RAM */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine copies the contents of non-volatile memory into a specifiedstring. The string is terminated with an EOS.<p></blockquote><h4>NOTE</h4><blockquote><p>This routine has no effect, since there is no non-volatile RAM.<p></blockquote><h4>RETURNS</h4><blockquote><p>ERROR, always.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./sysLib.html#top">sysLib</a></b>, <b><i><a href="./sysLib.html#sysNvRamSet">sysNvRamSet</a></i>( )</b><hr><a name="sysNvRamSet"></a><p align=right><a href="rtnIndex.html"><i>ns486 : Routines</i></a></p></blockquote><h1><i>sysNvRamSet</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>sysNvRamSet</i>( )</strong> - write to non-volatile RAM</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS sysNvRamSet ( char * string, /* string to be copied into non-volatile RAM */ int strLen, /* maximum number of bytes to copy */ int offset /* byte offset into non-volatile RAM */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine copies a specified string into non-volatile RAM.<p></blockquote><h4>NOTE</h4><blockquote><p>This routine has no effect, since there is no non-volatile RAM.<p></blockquote><h4>RETURNS</h4><blockquote><p>ERROR, always.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./sysLib.html#top">sysLib</a></b>, <b><i><a href="./sysLib.html#sysNvRamGet">sysNvRamGet</a></i>( )</b><hr><a name="sysLocalToBusAdrs"></a><p align=right><a href="rtnIndex.html"><i>ns486 : Routines</i></a></p></blockquote><h1><i>sysLocalToBusAdrs</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>sysLocalToBusAdrs</i>( )</strong> - convert a local address to a bus address</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS sysLocalToBusAdrs ( int adrsSpace, /* bus address space in which busAdrs resides, use */ /* modifier codes defined in vme.h, such as */ char * localAdrs, /* local address to convert */ char * *pBusAdrs /* where to return bus address */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine gets the VMEbus address that accesses a specified localmemory address.<p></blockquote><h4>NOTE</h4><blockquote><p>This routine has no effect, since there is no VMEbus.<p></blockquote><h4>RETURNS</h4><blockquote><p>ERROR, always.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./sysLib.html#top">sysLib</a></b>, <b><i><a href="./sysLib.html#sysBusToLocalAdrs">sysBusToLocalAdrs</a></i>( )</b><hr><a name="sysBusToLocalAdrs"></a><p align=right><a href="rtnIndex.html"><i>ns486 : Routines</i></a></p></blockquote><h1><i>sysBusToLocalAdrs</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>sysBusToLocalAdrs</i>( )</strong> - convert a bus address to a local address</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS sysBusToLocalAdrs ( int adrsSpace, /* bus address space in which busAdrs resides, use */ /* modifier codes defined in vme.h, such as */ char * busAdrs, /* bus address to convert */ char * *pLocalAdrs /* where to return local address */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine gets the local address that accesses a specified VMEbusaddress.<p></blockquote><h4>NOTE</h4><blockquote><p>This routine has no effect, since there is no VMEbus.<p></blockquote><h4>RETURNS</h4><blockquote><p>ERROR, always.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./sysLib.html#top">sysLib</a></b>, <b><i><a href="./sysLib.html#sysLocalToBusAdrs">sysLocalToBusAdrs</a></i>( )</b><hr><a name="sysBusIntAck"></a><p align=right><a href="rtnIndex.html"><i>ns486 : Routines</i></a></p></blockquote><h1><i>sysBusIntAck</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>sysBusIntAck</i>( )</strong> - acknowledge a bus interrupt</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>int sysBusIntAck ( int intLevel /* interrupt level to acknowledge */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine acknowledges a specified VMEbus interrupt level.<p></blockquote><h4>NOTE</h4><blockquote><p>This routine has no effect, since there is no VMEbus.<p></blockquote><h4>RETURNS</h4><blockquote><p>NULL.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./sysLib.html#top">sysLib</a></b><hr><a name="sysBusIntGen"></a><p align=right><a href="rtnIndex.html"><i>ns486 : Routines</i></a></p></blockquote><h1><i>sysBusIntGen</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>sysBusIntGen</i>( )</strong> - generate a bus interrupt</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS sysBusIntGen ( int level, /* bus interrupt level to generate */ int vector /* interrupt vector to return (0-255) */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine generates a VMEbus interrupt for a specified level with aspecified vector.<p></blockquote><h4>NOTE</h4><blockquote><p>This routine has no effect, since there is no VMEbus.<p></blockquote><h4>RETURNS</h4><blockquote><p>ERROR, always.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./sysLib.html#top">sysLib</a></b><hr><a name="sysMailboxConnect"></a><p align=right><a href="rtnIndex.html"><i>ns486 : Routines</i></a></p></blockquote><h1><i>sysMailboxConnect</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>sysMailboxConnect</i>( )</strong> - connect a routine to the mailbox interrupt</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS sysMailboxConnect ( FUNCPTR routine, /* routine called at each mailbox interrupt */ int arg /* argument with which to call routine */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine specifies the interrupt service routine to be called at eachmailbox interrupt.<p></blockquote><h4>NOTE</h4><blockquote><p>This routine has no effect, since the hardware does not support mailboxinterrupts.<p></blockquote><h4>RETURNS</h4><blockquote><p>ERROR, always.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./sysLib.html#top">sysLib</a></b>, <b><i><a href="./sysLib.html#sysMailboxEnable">sysMailboxEnable</a></i>( )</b><hr><a name="sysMailboxEnable"></a><p align=right><a href="rtnIndex.html"><i>ns486 : Routines</i></a></p></blockquote><h1><i>sysMailboxEnable</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>sysMailboxEnable</i>( )</strong> - enable the mailbox interrupt</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS sysMailboxEnable ( INT8 * mailboxAdrs /* mailbox address */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine enables the mailbox interrupt.<p></blockquote><h4>NOTE</h4><blockquote><p>This routine has no effect, since the hardware does not support mailboxinterrupts.<p></blockquote><h4>RETURNS</h4><blockquote><p>ERROR, always.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./sysLib.html#top">sysLib</a></b>, <b><i><a href="./sysLib.html#sysMailboxConnect">sysMailboxConnect</a></i>( )</b><hr><a name="sysBusTas"></a><p align=right><a href="rtnIndex.html"><i>ns486 : Routines</i></a></p></blockquote><h1><i>sysBusTas</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>sysBusTas</i>( )</strong> - test and set a location across the bus</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>BOOL sysBusTas ( INT8 * addr /* address to be tested and set */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine performs a test-and-set (TAS) instruction across the backplane.<p></blockquote><h4>NOTE</h4><blockquote><p>This routine is equivalent to <b><i><a href="../hpux/sysLib.html#vxTas" >vxTas</a></i>( )</b>, since there is no VMEbus.<p></blockquote><h4>RETURNS</h4><blockquote><p>TRUE if the value had not been set but is now,or FALSE if the value was set already.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./sysLib.html#top">sysLib</a></b>, <b><i><a href="../hpux/sysLib.html#vxTas" >vxTas</a></i>( )</b><hr><a name="sysSerialHwInit"></a><p align=right><a href="rtnIndex.html"><i>ns486 : Routines</i></a></p></blockquote><h1><i>sysSerialHwInit</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>sysSerialHwInit</i>( )</strong> - initialize the BSP serial devices to a quiescent state</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void sysSerialHwInit (void)</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine initializes the BSP serial device descriptors and puts thedevices in a quiescent state. It is called from <b><i><a href="./sysLib.html#sysHwInit">sysHwInit</a></i>( )</b> withinterrupts locked.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./sysLib.html#top">sysLib</a></b>, <b><i><a href="./sysLib.html#sysHwInit">sysHwInit</a></i>( )</b><hr><a name="sysSerialHwInit2"></a>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -