📄 syslib.html
字号:
<html><head><!-- /vobs/wpwr/docs/vxworks/bsp/simpc/sysLib.html - generated by refgen from sysLib.i --> <title> sysLib [simpc] </title></head><body bgcolor="#FFFFFF"> <hr><a name="top"></a><p align=right><a href="libIndex.html"><i>BSP Reference : simpc</i></a></p></blockquote><h1>sysLib [simpc]</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>sysLib [simpc]</strong> - vxSim for Windows dependent library </p></blockquote><h4>ROUTINES</h4><blockquote><p><p><b><i><a href="./sysLib.html#sysClkConnect">sysClkConnect</a></i>( )</b> - connect a routine to the system clock interrupt<br><b><i><a href="./sysLib.html#sysClkDisable">sysClkDisable</a></i>( )</b> - turn off system clock interrupts<br><b><i><a href="./sysLib.html#sysClkEnable">sysClkEnable</a></i>( )</b> - turn on system clock interrupts<br><b><i><a href="./sysLib.html#sysClkRateGet">sysClkRateGet</a></i>( )</b> - get the system clock rate<br><b><i><a href="./sysLib.html#sysClkRateSet">sysClkRateSet</a></i>( )</b> - set the system clock rate<br><b><i><a href="./sysLib.html#sysAuxClkConnect">sysAuxClkConnect</a></i>( )</b> - connect a routine to the auxiliary clock interrupt<br><b><i><a href="./sysLib.html#sysAuxClkDisable">sysAuxClkDisable</a></i>( )</b> - turn off auxiliary clock interrupts<br><b><i><a href="./sysLib.html#sysAuxClkEnable">sysAuxClkEnable</a></i>( )</b> - turn on auxiliary clock interrupts<br><b><i><a href="./sysLib.html#sysAuxClkRateGet">sysAuxClkRateGet</a></i>( )</b> - get the auxiliary clock rate<br><b><i><a href="./sysLib.html#sysAuxClkRateSet">sysAuxClkRateSet</a></i>( )</b> - set the auxiliary clock rate<br><b><i><a href="./sysLib.html#sysNvRamGet">sysNvRamGet</a></i>( )</b> - get the contents of non-volatile RAM<br><b><i><a href="./sysLib.html#sysNvRamSet">sysNvRamSet</a></i>( )</b> - write to non-volatile RAM<br><b><i><a href="./sysLib.html#sysLocalToBusAdrs">sysLocalToBusAdrs</a></i>( )</b> - convert a local address to a bus address<br><b><i><a href="./sysLib.html#sysBusToLocalAdrs">sysBusToLocalAdrs</a></i>( )</b> - convert a bus address to a local address<br><b><i><a href="./sysLib.html#sysBusIntAck">sysBusIntAck</a></i>( )</b> - acknowledge a bus interrupt<br><b><i><a href="./sysLib.html#sysBusIntGen">sysBusIntGen</a></i>( )</b> - generate a bus interrupt<br><b><i><a href="./sysLib.html#sysMailboxConnect">sysMailboxConnect</a></i>( )</b> - connect a routine to the mailbox interrupt<br><b><i><a href="./sysLib.html#sysMailboxEnable">sysMailboxEnable</a></i>( )</b> - enable the mailbox interrupt<br><b><i><a href="./sysLib.html#sysBusTas">sysBusTas</a></i>( )</b> - test and set a location across the bus<br><b><i><a href="./sysLib.html#sysSerialHwInit">sysSerialHwInit</a></i>( )</b> - initialize the BSP serial devices to a quiescent state<br><b><i><a href="./sysLib.html#sysSerialHwInit2">sysSerialHwInit2</a></i>( )</b> - connect BSP serial device interrupts<br><b><i><a href="./sysLib.html#sysSerialChanGet">sysSerialChanGet</a></i>( )</b> - get the <b>SIO_CHAN</b> device associated with a serial channel<br><b><i><a href="./sysLib.html#sysModel">sysModel</a></i>( )</b> - return the model name of the CPU board<br><b><i><a href="./sysLib.html#sysBspRev">sysBspRev</a></i>( )</b> - return the BSP version and revision number<br><b><i><a href="./sysLib.html#sysHwInit">sysHwInit</a></i>( )</b> - initialize the system hardware<br><b><i><a href="./sysLib.html#sysHwInit2">sysHwInit2</a></i>( )</b> - additional system configuration and initialization<br><b><i><a href="./sysLib.html#sysPhysMemTop">sysPhysMemTop</a></i>( )</b> - get the address of the top of physical memory<br><b><i><a href="./sysLib.html#sysMemTop">sysMemTop</a></i>( )</b> - get the address of the top of VxWorks memory<br><b><i><a href="./sysLib.html#sysToMonitor">sysToMonitor</a></i>( )</b> - transfer control to the ROM monitor<br><b><i><a href="./sysLib.html#sysIntDisable">sysIntDisable</a></i>( )</b> - disable a bus interrupt level<br><b><i><a href="./sysLib.html#sysIntEnable">sysIntEnable</a></i>( )</b> - enable a bus interrupt level<br><b><i><a href="./sysLib.html#sysProcNumGet">sysProcNumGet</a></i>( )</b> - get the processor number<br><b><i><a href="./sysLib.html#sysProcNumSet">sysProcNumSet</a></i>( )</b> - set the processor number<br><b><i><a href="./sysLib.html#sysDelay">sysDelay</a></i>( )</b> - allow recovery time for port accesses<br><p></blockquote><h4>DESCRIPTION</h4><blockquote><p><p></blockquote><h4>INCLUDE FILES</h4><blockquote><p><b>sysLib.h</b><p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./sysLib.html#top">sysLib</a></b>, <i>VxWorks Programmer's Guide: Configuration</i><hr><a name="sysClkConnect"></a><p align=right><a href="rtnIndex.html"><i>simpc : Routines</i></a></p></blockquote><h1><i>sysClkConnect</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>sysClkConnect</i>( )</strong> - connect a routine to the system clock interrupt</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS sysClkConnect ( FUNCPTR routine, int arg )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine specifies the interrupt service routine to be called at eachclock interrupt from the system timer. Normally, it is called from <b><i><a href="../../ref/usrConfig.html#usrRoot" >usrRoot</a></i>( )</b>in <b>usrConfig.c</b> to connect <b><i><a href="../../ref/usrConfig.html#usrClock" >usrClock</a></i>( )</b> to the system clock interrupt.<p></blockquote><h4>RETURN</h4><blockquote><p>OK, or ERROR if the routine cannot be connected to the interrupt.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./sysLib.html#top">sysLib</a></b>, <b><i><a href="../../ref/intArchLib.html#intConnect" >intConnect</a></i>( )</b>, <b><i><a href="../../ref/usrConfig.html#usrClock" >usrClock</a></i>( )</b>, <b><i><a href="./sysLib.html#sysClkEnable">sysClkEnable</a></i>( )</b><hr><a name="sysClkDisable"></a><p align=right><a href="rtnIndex.html"><i>simpc : Routines</i></a></p></blockquote><h1><i>sysClkDisable</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>sysClkDisable</i>( )</strong> - turn off system clock interrupts</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void sysClkDisable(void)</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine disables system 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#sysClkEnable">sysClkEnable</a></i>( )</b><hr><a name="sysClkEnable"></a><p align=right><a href="rtnIndex.html"><i>simpc : Routines</i></a></p></blockquote><h1><i>sysClkEnable</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>sysClkEnable</i>( )</strong> - turn on system clock interrupts</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void sysClkEnable(void)</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine enables system 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#sysClkConnect">sysClkConnect</a></i>( )</b>, <b><i><a href="./sysLib.html#sysClkDisable">sysClkDisable</a></i>( )</b>, <b><i><a href="./sysLib.html#sysClkRateSet">sysClkRateSet</a></i>( )</b><hr><a name="sysClkRateGet"></a><p align=right><a href="rtnIndex.html"><i>simpc : Routines</i></a></p></blockquote><h1><i>sysClkRateGet</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>sysClkRateGet</i>( )</strong> - get the system clock rate</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>int sysClkRateGet(void)</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine returns the system clock rate.<p></blockquote><h4>RETURNS</h4><blockquote><p>The number of ticks per second of the system clock.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./sysLib.html#top">sysLib</a></b>, <b><i><a href="./sysLib.html#sysClkEnable">sysClkEnable</a></i>( )</b>, <b><i><a href="./sysLib.html#sysClkRateSet">sysClkRateSet</a></i>( )</b><hr><a name="sysClkRateSet"></a><p align=right><a href="rtnIndex.html"><i>simpc : Routines</i></a></p></blockquote><h1><i>sysClkRateSet</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>sysClkRateSet</i>( )</strong> - set the system clock rate</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS sysClkRateSet ( int rate )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine sets the interrupt rate of the system clock.It is called by <b><i><a href="../../ref/usrConfig.html#usrRoot" >usrRoot</a></i>( )</b> in <b>usrConfig.c</b>.<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#sysClkEnable">sysClkEnable</a></i>( )</b>, <b><i><a href="./sysLib.html#sysClkRateGet">sysClkRateGet</a></i>( )</b><hr><a name="sysAuxClkConnect"></a><p align=right><a href="rtnIndex.html"><i>simpc : Routines</i></a></p></blockquote><h1><i>sysAuxClkConnect</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>sysAuxClkConnect</i>( )</strong> - connect a routine to the auxiliary clock interrupt</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS sysAuxClkConnect ( FUNCPTR routine, int arg )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine specifies the interrupt service routine to be called at eachauxiliary clock interrupt. It does not enable auxiliary clock interrupts.<p></blockquote><h4>RETURNS</h4><blockquote><p>OK, or ERROR if the routine cannot be connected to the interrupt.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./sysLib.html#top">sysLib</a></b>, <b><i><a href="../../ref/intArchLib.html#intConnect" >intConnect</a></i>( )</b>, <b><i><a href="./sysLib.html#sysAuxClkEnable">sysAuxClkEnable</a></i>( )</b><hr><a name="sysAuxClkDisable"></a><p align=right><a href="rtnIndex.html"><i>simpc : Routines</i></a></p></blockquote><h1><i>sysAuxClkDisable</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>sysAuxClkDisable</i>( )</strong> - turn off auxiliary clock interrupts</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void sysAuxClkDisable(void)</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine disables 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#sysAuxClkEnable">sysAuxClkEnable</a></i>( )</b><hr><a name="sysAuxClkEnable"></a><p align=right><a href="rtnIndex.html"><i>simpc : 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>simpc : 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>simpc : 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 rate )</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>simpc : 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>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -