sppstatus.c
来自「无线龙ZigBee模块CC1010的接收-发送程序。」· C语言 代码 · 共 48 行
C
48 行
/*****************************************************************************
* *
* ********** *
* ************ *
* *** *** *
* *** +++ *** *
* *** + + *** *
* *** + CHIPCON CC1010 *
* *** + + *** CUL - spp *
* *** +++ *** *
* *** *** *
* *********** *
* ********* *
* *
*****************************************************************************
* *
*****************************************************************************
* Author: JOL *
*****************************************************************************
* Revision history: *
* *
* $Log: sppStatus.c,v $
* Revision 1.1 2002/10/14 12:27:34 tos
* Initial version in CVS.
*
* *
****************************************************************************/
#include <chipcon/sppInternal.h>
//----------------------------------------------------------------------------
// byte sppStatus (void)
//
// Description:
// Returns the status of the SPP.
//
// Return value:
// byte
// SPP_IDLE_MODE = Ready to transmit or receive
// SPP_TX_MODE = Transmitting a packet
// SPP_TXACK_MODE = Waiting for the ack
// SPP_RX_MODE = Waiting for or receiving a packet
// SPP_RXACK_MODE = Transmitting the ack
//----------------------------------------------------------------------------
byte sppStatus (void) {
return (sppIntData.mode);
} // sppStatus
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?