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

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

?? cul.h

?? zigbee通信系統中使用芯片cc2430實現點對點通信的源碼
?? 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一区二区三区免费野_久草精品视频
国产一区二区三区久久久 | 亚洲卡通动漫在线| 国产视频一区在线播放| 欧美tickling网站挠脚心| 51午夜精品国产| 日韩欧美123| 久久亚洲免费视频| 国产精品天干天干在线综合| 欧美国产国产综合| 亚洲欧美在线观看| 一区二区在线观看免费| 亚洲va欧美va国产va天堂影院| 亚洲一二三区不卡| 日本女优在线视频一区二区| 国产一区亚洲一区| aaa国产一区| 欧美中文字幕亚洲一区二区va在线| 欧美日韩一区二区三区高清| 日韩欧美国产麻豆| 国产日韩亚洲欧美综合| 国产精品国产三级国产专播品爱网| 亚洲欧美中日韩| 日韩高清在线不卡| 狠狠色丁香婷综合久久| 99国产精品国产精品久久| 欧美系列日韩一区| 精品va天堂亚洲国产| 国产精品美女久久久久久久 | 粉嫩av一区二区三区| 一本色道久久综合亚洲精品按摩| 欧美精品一二三区| 久久综合久久综合久久综合| 国产精品久久久久久亚洲伦| 日韩精品亚洲专区| av午夜精品一区二区三区| 在线精品视频小说1| 2020日本不卡一区二区视频| 亚洲综合在线五月| 国产在线视频精品一区| 欧美自拍偷拍一区| 久久精品一级爱片| 日韩不卡在线观看日韩不卡视频| 风间由美一区二区av101 | 中文久久乱码一区二区| 图片区小说区区亚洲影院| 国产福利电影一区二区三区| 在线免费观看日韩欧美| 亚洲国产成人午夜在线一区| 捆绑紧缚一区二区三区视频 | 91精品国产麻豆| 亚洲色图一区二区| 国产成人精品免费网站| 91精品国产一区二区三区蜜臀| 中文字幕欧美激情| 精品一区在线看| 欧美久久久久中文字幕| 综合久久给合久久狠狠狠97色 | 欧美精品 国产精品| 国产精品成人午夜| 国产精品自拍一区| 日韩一区二区三| 无码av免费一区二区三区试看| 91网站视频在线观看| 国产色产综合产在线视频| 久久精品99国产精品| 欧美日韩免费在线视频| 一区二区三区国产精华| 91免费看`日韩一区二区| 奇米精品一区二区三区在线观看一| 成人av影视在线观看| 欧美激情一区三区| 国产精品一区二区你懂的| 精品美女在线播放| 久久不见久久见免费视频7| 日韩一区二区麻豆国产| 日本不卡一区二区三区| 欧美日韩高清一区二区| 亚洲444eee在线观看| 777色狠狠一区二区三区| 性做久久久久久| 日韩一级免费观看| 紧缚奴在线一区二区三区| 欧美videos大乳护士334| 乱中年女人伦av一区二区| 欧美变态凌虐bdsm| 国产精品一区二区在线观看网站| 久久久久久久精| 成人午夜免费电影| 亚洲激情第一区| 欧美顶级少妇做爰| 久久97超碰色| 日本一区二区三区电影| 91视频www| 亚洲成人自拍一区| 久久久一区二区| 91浏览器入口在线观看| 亚洲成人自拍偷拍| 久久影视一区二区| 91偷拍与自偷拍精品| 偷拍日韩校园综合在线| 精品区一区二区| 成人av在线影院| 亚洲高清三级视频| 久久久久97国产精华液好用吗| caoporn国产一区二区| 亚洲国产精品久久不卡毛片| 精品久久久久久久一区二区蜜臀| 成人激情开心网| 午夜精品爽啪视频| 久久综合色天天久久综合图片| 成年人网站91| 免费看欧美女人艹b| 国产精品乱人伦中文| 7777精品伊人久久久大香线蕉超级流畅 | 国产成人免费视频网站| 国产精品毛片久久久久久久 | 日日骚欧美日韩| 久久这里只精品最新地址| 91福利区一区二区三区| 久久精品国产免费| 亚洲bdsm女犯bdsm网站| 久久久99免费| 7777精品伊人久久久大香线蕉经典版下载 | 国产激情精品久久久第一区二区| 亚洲欧美日本在线| 日韩欧美色电影| 在线国产电影不卡| 97se亚洲国产综合自在线观| 久久超碰97人人做人人爱| 亚洲一区二区三区中文字幕 | av中文一区二区三区| 精品一区二区三区不卡| 亚洲一区二区三区视频在线| 欧美精彩视频一区二区三区| 91精品国产综合久久久久| 色综合久久久久综合99| 国产成人精品综合在线观看| 另类调教123区| 免费观看久久久4p| 三级不卡在线观看| 一区二区激情视频| 一色屋精品亚洲香蕉网站| 精品国产91亚洲一区二区三区婷婷| 欧美狂野另类xxxxoooo| 色哟哟国产精品免费观看| 丰满白嫩尤物一区二区| 国模少妇一区二区三区| 老司机午夜精品| 激情小说欧美图片| 国产盗摄一区二区| 国产精品99久久不卡二区| 国产在线精品一区二区不卡了| 欧美日韩色一区| 欧美视频完全免费看| 欧美日韩和欧美的一区二区| 欧美少妇性性性| 欧美精品一二三区| 欧美大片日本大片免费观看| 日韩精品最新网址| 精品国产伦一区二区三区免费 | 99久久国产免费看| 91网站在线播放| 欧美性受xxxx黑人xyx| 91成人国产精品| 欧美日韩二区三区| 制服.丝袜.亚洲.另类.中文| 亚洲精品一线二线三线| 国产婷婷一区二区| 亚洲免费av网站| 天堂影院一区二区| 久久99精品久久久| 成人毛片在线观看| 欧美综合色免费| 欧美mv日韩mv亚洲| 麻豆精品视频在线观看| 国产成人av资源| 欧美午夜精品理论片a级按摩| 欧美日韩国产另类一区| 欧美α欧美αv大片| 国产欧美一区二区三区沐欲| 国产精品伦理在线| 日日夜夜一区二区| 国产91高潮流白浆在线麻豆| 99久久精品国产毛片| 在线播放视频一区| 2023国产精品| 亚洲永久免费av| 国产+成+人+亚洲欧洲自线| 一本一本大道香蕉久在线精品| 欧美精品三级在线观看| 中文av一区特黄| 日韩精品久久理论片| 99久久精品免费看| 精品久久国产97色综合| 日韩理论片中文av| 久久99精品一区二区三区三区| 色综合天天综合在线视频| 欧美丝袜自拍制服另类| 日韩欧美一区二区在线视频| 国产视频一区二区三区在线观看|