亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? cul.h

?? zigbee無線網絡源碼包
?? H
?? 第 1 頁 / 共 3 頁
字號:
*      automatically calculate and insert a CRC value when in transmit and to
*      check the CRC value in receive.
*
* Parameters:
*
* @param  UINT32 frequency
*         The desired Radio Frequency in kHz.
* @param  BYTE	 address
*         This nodes address.
*
* @return BOOL
*         Returns TRUE if the configuration is successful and FALSE otherwise.
*
******************************************************************************/
BOOL sppInit(UINT32 frequency, BYTE address);


/******************************************************************************
* @fn  spp_rf_IRQ
*
* @brief
*      This ISR handles the possible RF interrupts that may occur when using the
*      SPP. When the start of a packet is received, the RX-state will be set
*      accordingly.When a packet is sent and no ACK is requested, the TX_DONE
*      interrupt will be run. Reception of a complete packet will only be used
*      for receiving an ACK. This ISR will handle the ACK reception.
*
* Parameters:
*
* @param  void
*
* @return void
*
******************************************************************************/
__interrupt void spp_rf_IRQ(void);

/******************************************************************************
* @fn  rf_error_IRQ(
*
* @brief
*      This function is run if an Radio error interrupt (RFIF) is generated.
*      If TX underrun or RX overflow occurs, the corresponding FIFO is flushed.
*
* Parameters:
*
* @param  void
*
* @return void
*
******************************************************************************/
__interrupt void rf_error_IRQ(void);

/******************************************************************************
* @fn  sppSetAddress
*
* @brief
*      This function changes the local address.
*
* Parameters:
*
* @param  BYTE	 address
*         This nodes new address.
*
* @return void
*
******************************************************************************/
void sppSetAddress(BYTE address);


/******************************************************************************
* @fn  sppSend
*
* @brief
*      This function transfers _length_ bytes (up to 122) starting at
*      _pTransferData_ to the _recipient_. The number of bytes to be
*      transferred, flags, and destination- and source-address are inserted
*      before the Tx DMA channel is set up to transfer the payload to the Tx
*      FiFo. After the DMA channel is started, the transmitter is turned on.
*      If an ACK is expected in response, the corresponding flags and settings
*      are configured.
//發送length字節的數據(最多122),標志,目的地址,源地址在Tx DMA 通道傳送有效
//載荷到Tx FIFO前插入,如果期望應當,設置相應的標志
* Parameters:
*
* @param  SPP_TX_STRUCT*	 pPacketPointer
*         Pointer to the struct containing the transfer data.
*
* @return BYTE
*         Returns TRUE if the transfer is successful, TOO_LONG if the length of
*         the data is too long and CHANNEL_BUSY if the channel is not available.
*
******************************************************************************/
BYTE sppSend(SPP_TX_STRUCT* pPacketPointer);



/******************************************************************************
* @fn  sppReceive
*
* @brief
*      This function enables reception of up to 128 bytes including header and
*      trailer. The received data will be transferred by the DMA to the data
*      space starting at _pReceiveData_. The DMA is armed and reception is
*      turned on. The reception of data will generate DMA triggers. When the
*      whole packet has been received and transferred, the DMA will generate an
*      interrupt and run the function _rxCallBack_, which is defined above.
//這個函數使能接收128字節,包括頭和尾。接收數據通過DMA傳輸到pReceiveData。DMA裝備
//同時接收開啟。接收數據將觸發DMA,當所有的數據包接收并且移走,DMA產生一個中斷同時
//運行以前定義的函數rxCallBack
* Parameters:
*
* @param  SPP_RX_STRUCT*	 pReceiveData
*         Pointer to where the received data are to be stored.
*
* @return void
*
******************************************************************************/
void sppReceive(SPP_RX_STRUCT *pReceiveData);


/******************************************************************************
* @fn  setRxCallBackFunction
*
* @brief
*     This function is used to set a user-specified call-back function
*     to be run when a correct packet addressed for me is received.
*
* Parameters:
*
* @param  FUNCTION	 callBackFunction
*
* @return void
*
******************************************************************************/
void sppSetRxCallBackFunction(FUNCTION callBackFunction);




/******************************************************************************
*******************       Radio (simple usage of SPP)       *******************
******************************************************************************/

//------------------------------------------------------------------------------------------------------
// void radioInit(...);
//
//  Description:
//      This function initializes the radio by calling sppInit. The frequency of operation is set and
//      this nodes address is stored. The radio is set up for handling non-IEEE 802.15.4 packets.
//
//  Arguments:
//      UINT32 frequency
//          The radio frequency to be used.
//      BYTE localAddress
//          The address of this node.
//
//  Return value:
//      void
//------------------------------------------------------------------------------------------------------
void radioInit(UINT32 frequency, BYTE localAddress);

//------------------------------------------------------------------------------------------------------
// BYTE radioSend(...);
//
//  Description:
//      This function sends data of a given length either to a specified recipient (may be broadcast)
//      using the radio. If the number of bytes to be transferred is larger than the size of the TX FIFO,
//      the data is split over an adequate number of packets. The function uses the SPP library. If the
//      radio is busy, or the packet is sent but not ACK'ed, the transmission is retried. If the retires
//      fails, the function returns FALSE. If the packet is ACK'ed correctly by the receiver, the
//      function returns TRUE.
//
//  Arguments:
//      BYTE* transmitData
//                      Pointer to the data to be sent.
//      WORD dataLenght
//          The number of bytes to be transferred.
//      BYTE remoteAddress
//          The address of the node to receive the packet. 0 is broadcast address (BROADCAST_ADDRESS).
//      BYTE doAck
//          Set to DO_ACK if the packet is to be ACK'ed and DO_NOT_ACK otherwise.
//
//  Return value:
//      BOOL
//          TRUE if the sent packet is acked by the recipient and false otherwise.
//------------------------------------------------------------------------------------------------------
BOOL radioSend(BYTE* transmitData, WORD dataLength, BYTE remoteAddress, BYTE doAck);


//------------------------------------------------------------------------------------------------------
// BYTE radioReceive(...);
//
//  Description:
//      This function turns on the radio receiver and waits until either a correctly addressed packet
//      packet is received or the unit has been waiting for a specified time period. The function employs
//      the SPP library for radio access.
//
//  Arguments:
//      BYTE** receiveData
//                      Double pointer to the received data. This way of reference reduces the RAM requirement.
//      BYTE* lenght
//          Pointer to the length of the received data.
//      WORD timeout
//          Value indicating how long the receiver will wait for a packet in ms. If no packet is received
//          within this timeout period, false is returned.
//          If timeout is set to 0, the function will not return before a packet is received.
//      BYTE* sender
//          The function will fill in the packets source address at this location.
//
//  Return value:
//      BOOL
//          TRUE if a packet has been received and FALSE if no packet has been received within the timeout
//          period.
//------------------------------------------------------------------------------------------------------
BOOL radioReceive(BYTE** receiveData, BYTE* length, WORD timeout, BYTE* sender);



/******************************************************************************
*******************       FLASH LIFE EXTENDER (FLEX)       ********************
******************************************************************************/
typedef struct{
    enum{
        ERASED          = 3,
        VALID           = 2,
        OBSOLETE        = 0,
    }pageState;//: 2;
    enum{
        VERSION_0       = 0,
        VERSION_1       = 1,
        VERSION_2       = 2,
        VERSION_3       = 3,
    } version;//: 6;
    BYTE identifier;
    WORD eraseCounter;
}FLEX_PAGE_HEADER;




#define FLEX_ALLOC(kb)                                              \
    BYTE __code flexPages = (kb/2);                                 \
    BYTE __code flexBuf[kb/2 * 2048] _at_ (0x10000 - (kb/2 * 2048)) \


/******************************************************************************
* @fn  flexFetch
*
* @brief
*
* Parameters:
*
* @param  void* pDataPointer
* @param  BYTE	 id
* @param  BYTE	 length
* @param  void* initValue
*
* @return BOOL
*
******************************************************************************/
BOOL flexFetch(void* pDataPointer, BYTE id, BYTE length, void* initValue);


/******************************************************************************
* @fn  flexCommit
*
* @brief       Description of the function.
*
* Parameters:
*
* @param  void*
* @param  BYTE	 id
* @param  BYTE	 length
*
* @return BOOL
*
******************************************************************************/
BOOL flexCommit(void* pDataPointer, BYTE id, BYTE length);

#define FLASH_WRITE_BUFFER_LENGTH    60


#define FLEX_NOT_FOUND      0x08
#define FLEX_DATA_VALID     0x02
#define FLEX_DATA_UNUSED    0xFF
#define FLEX_DATA_OBSOLETE  0x00

#endif  // CUL_H

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩成人一区| 26uuuu精品一区二区| 色天使色偷偷av一区二区| 色综合久久中文字幕综合网| 欧美性生交片4| 亚洲精品在线免费播放| 中文字幕av一区二区三区高 | 亚洲天堂av老司机| 亚洲一区中文在线| 精品一二三四在线| 色婷婷综合久久久久中文| 日韩视频免费直播| 亚洲三级小视频| 久久99久国产精品黄毛片色诱| 成人激情av网| 精品国产乱码久久久久久浪潮| 亚洲精品日韩专区silk| 成人免费视频免费观看| 欧美一区二区精品久久911| 亚洲情趣在线观看| 成人免费高清视频| 精品剧情v国产在线观看在线| 亚洲国产欧美在线| www.欧美日韩国产在线| 国产婷婷色一区二区三区| 日本成人在线看| 777奇米成人网| 亚洲免费av网站| 99vv1com这只有精品| 中文字幕av免费专区久久| 成人午夜精品一区二区三区| 久久久久久一二三区| 国产精品一区久久久久| 中文字幕av一区二区三区| 国产成人亚洲综合a∨婷婷图片| 日韩精品一区二区三区在线观看 | 福利一区福利二区| 国产精品日韩精品欧美在线| 91首页免费视频| 亚洲国产中文字幕在线视频综合| 日本精品视频一区二区| 日韩高清不卡一区二区| 制服丝袜av成人在线看| 激情综合网天天干| 国产精品网站在线观看| 欧美性一区二区| 国产永久精品大片wwwapp| 中文字幕亚洲区| 欧美精品精品一区| 东方aⅴ免费观看久久av| 亚洲品质自拍视频| 精品国产一区二区亚洲人成毛片 | 亚洲成a人v欧美综合天堂 | 久久国产夜色精品鲁鲁99| 精品久久人人做人人爽| 日本精品一区二区三区高清| 免费在线看成人av| 亚洲精品成人少妇| 欧美一区二区视频在线观看2020| 国产精品主播直播| 日日夜夜精品视频天天综合网| 欧美高清一级片在线观看| 欧美电影一区二区| 91视频你懂的| 99久久精品久久久久久清纯| 韩国av一区二区| 久久99在线观看| 日韩av成人高清| 天堂成人国产精品一区| 亚洲精品国产无套在线观| 国产亚洲精品免费| 久久久国产精华| 国产网红主播福利一区二区| 日韩手机在线导航| 337p亚洲精品色噜噜狠狠| 欧美三级一区二区| 欧美日精品一区视频| 欧洲一区二区三区免费视频| 欧美中文字幕亚洲一区二区va在线 | 国产在线精品视频| 国产在线看一区| 成人黄色大片在线观看| 国产成人午夜99999| 国产一区二区美女| 不卡在线视频中文字幕| 欧美三级电影一区| 欧美mv日韩mv亚洲| 成人免费视频在线观看| 午夜不卡av免费| 国产精品资源在线观看| 99久久精品国产导航| 欧美手机在线视频| 久久亚洲一级片| 亚洲成av人片在www色猫咪| 美女视频黄 久久| 91麻豆高清视频| 欧美日韩国产区一| 亚洲欧洲av一区二区三区久久| 五月激情六月综合| av电影一区二区| 26uuu亚洲| 青青草精品视频| 在线影视一区二区三区| 精品国精品自拍自在线| 午夜国产精品一区| 色综合久久六月婷婷中文字幕| 欧美精品一区二区在线播放| 亚洲h在线观看| 91视频在线观看| 欧美国产乱子伦| 成人午夜av电影| 久久久久久久久久久黄色| 日韩成人一区二区| 欧美日产国产精品| 香蕉乱码成人久久天堂爱免费| 91香蕉视频mp4| 亚洲欧美电影院| aaa亚洲精品一二三区| 国产精品久久一卡二卡| 岛国av在线一区| 国产精品三级视频| 91首页免费视频| 午夜视频一区在线观看| 欧美日韩一区二区三区在线| 午夜精品福利视频网站| 欧美女孩性生活视频| 亚洲高清中文字幕| 毛片av一区二区| 日韩一级视频免费观看在线| 69p69国产精品| 久久精品国产亚洲高清剧情介绍| 在线看不卡av| 日本欧美久久久久免费播放网| 在线观看免费视频综合| 国产一区二区导航在线播放| 亚洲黄色小视频| 中文字幕五月欧美| 亚洲国产成人午夜在线一区| 国产日韩欧美一区二区三区乱码 | 亚洲精品一区二区精华| 欧美一卡二卡三卡四卡| 正在播放亚洲一区| 日韩欧美成人午夜| 国产日产欧产精品推荐色 | 亚洲精品伦理在线| 亚洲男人的天堂在线aⅴ视频| 亚洲人午夜精品天堂一二香蕉| 国产精品久久久久久久浪潮网站| 日本一区二区三区在线观看| 亚洲视频电影在线| 日韩和欧美一区二区| 国产在线乱码一区二区三区| 风间由美性色一区二区三区| 99久久99久久精品免费观看| 日本乱码高清不卡字幕| 日韩三级av在线播放| 国产婷婷色一区二区三区在线| 亚洲天堂av老司机| 免费成人在线网站| 91亚洲精华国产精华精华液| 欧美一区欧美二区| 一区二区三区中文字幕精品精品 | 中文字幕av一区 二区| 天天免费综合色| 成人h精品动漫一区二区三区| 91精品国产综合久久久蜜臀粉嫩 | 97国产一区二区| 精品精品国产高清一毛片一天堂| 1024国产精品| 国产91精品一区二区麻豆亚洲| 欧美喷潮久久久xxxxx| 亚洲一区二区三区美女| 成人高清免费观看| 久久婷婷综合激情| 国产一区在线观看麻豆| 久久综合九色综合欧美98| 日韩中文字幕麻豆| 欧美精品一二三四| 日韩主播视频在线| 欧美精品久久一区二区三区| 亚洲成a人片在线不卡一二三区| 91免费版在线| 亚洲一区二区在线视频| 日本韩国欧美三级| 国产精品久久久久久久浪潮网站 | 国产精品高清亚洲| av不卡在线观看| 午夜影院在线观看欧美| 日韩一区二区三区四区| 国产精品中文字幕欧美| 国产精品国产三级国产a| 在线观看日韩高清av| 水蜜桃久久夜色精品一区的特点| 欧美日韩亚洲综合| 美女视频一区在线观看| 久久久天堂av| 欧美精品在线观看播放| 国产成+人+日韩+欧美+亚洲| 婷婷一区二区三区| 久久精品一区二区三区不卡|