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

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

?? cul.h

?? reference about wireless design which is helpful to everyone
?? H
?? 第 1 頁 / 共 3 頁
字號:
*      data to and from the Rx FiFo and Tx FiFo respectively. The Timer 4
*      administrator is also set up, and this unit will be used to generate
*      interrupts when a packet is not ACK'ed by the recipient whithin some time.
*      The radio is configured to transmit at a given frequency and to
*      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.
*
* 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_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.
*
* Parameters:
*
* @param  SPP_RX_STRUCT*	 pReceiveData
*         Pointer to where the received data are to be stored.
*
* @return void
*
******************************************************************************/
void sppReceive(SPP_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一区二区三区免费野_久草精品视频
日本成人在线看| 91超碰这里只有精品国产| 欧美怡红院视频| 日韩精品一区二区三区中文精品| 亚洲人成网站在线| 国产激情精品久久久第一区二区| 51精品久久久久久久蜜臀| 中文字幕一区二区三中文字幕| 美女视频黄频大全不卡视频在线播放| 91一区二区三区在线播放| 久久久久综合网| 九九**精品视频免费播放| 5月丁香婷婷综合| 亚洲aaa精品| 欧美在线一区二区| 亚洲男帅同性gay1069| 成人国产免费视频| 欧美国产一区视频在线观看| 国产在线播放一区| 久久久夜色精品亚洲| 激情综合色播五月| 日韩精品一区二区三区在线播放 | 亚洲福利电影网| 色婷婷激情一区二区三区| 亚洲国产高清不卡| 成人免费看的视频| 国产精品高潮呻吟| 91丨porny丨在线| 亚洲欧美在线观看| 97精品久久久久中文字幕| 国产精品视频在线看| 不卡视频一二三| 亚洲精品中文在线观看| 色综合久久综合网欧美综合网 | 欧美变态口味重另类| 免费欧美在线视频| 日韩精品一区二区在线| 久久er99热精品一区二区| 日韩欧美一级二级| 国产自产v一区二区三区c| 久久综合九色综合97_久久久| 国产精品乡下勾搭老头1| 国产色爱av资源综合区| 成人a级免费电影| 亚洲男人电影天堂| 91 com成人网| 狠狠色丁香久久婷婷综合丁香| 国产亚洲一本大道中文在线| 高清不卡一区二区在线| 亚洲色图欧洲色图婷婷| 欧美蜜桃一区二区三区| 极品销魂美女一区二区三区| 国产精品的网站| 欧美日韩亚洲综合一区| 精品一区二区三区久久| 中文字幕av一区二区三区高 | 亚洲精品国产高清久久伦理二区| 欧美综合亚洲图片综合区| 天天影视涩香欲综合网| 久久久夜色精品亚洲| 色哟哟国产精品| 麻豆91精品视频| 国产精品不卡视频| 日韩视频一区二区三区在线播放 | 麻豆精品久久精品色综合| 欧美国产亚洲另类动漫| 欧美日韩免费一区二区三区视频| 韩国视频一区二区| 亚洲尤物视频在线| 国产色一区二区| 69堂成人精品免费视频| 不卡视频免费播放| 久久疯狂做爰流白浆xx| 亚洲欧美偷拍三级| 久久奇米777| 欧美视频在线观看一区二区| 国产精品 日产精品 欧美精品| 一区二区三区美女| 国产视频在线观看一区二区三区| 欧美日本高清视频在线观看| 国产91精品久久久久久久网曝门| 丝袜脚交一区二区| 亚洲少妇中出一区| 国产欧美一区二区三区在线看蜜臀 | jvid福利写真一区二区三区| 午夜久久久影院| 成人免费一区二区三区视频 | 国产一区二区h| 亚洲一区视频在线| 亚洲天堂精品在线观看| 26uuu精品一区二区三区四区在线 26uuu精品一区二区在线观看 | 久久久精品tv| 欧美一级在线观看| 欧美日韩国产电影| 一本到一区二区三区| 成人亚洲一区二区一| 蜜臀久久99精品久久久久久9| 亚洲午夜影视影院在线观看| 国产精品三级视频| 欧美精彩视频一区二区三区| 日韩三级精品电影久久久| 欧美日韩亚州综合| 欧美无乱码久久久免费午夜一区| 成人va在线观看| 成人中文字幕在线| 国产成人亚洲综合色影视| 国产乱人伦精品一区二区在线观看 | 成人网页在线观看| 国产iv一区二区三区| 国内外精品视频| 国产精品一区二区在线看| 精品一区二区三区免费播放| 麻豆精品一区二区综合av| 日本视频免费一区| 麻豆一区二区在线| 麻豆一区二区99久久久久| 久久99久久99| 国产乱对白刺激视频不卡| 国产一二精品视频| 国产夫妻精品视频| 不卡av免费在线观看| 99免费精品在线观看| 91网站在线播放| 99re亚洲国产精品| 色狠狠一区二区三区香蕉| 91成人在线免费观看| 欧美久久久久久久久久| 91麻豆精品国产无毒不卡在线观看| 91麻豆精品国产91久久久| 日韩三级免费观看| 国产午夜亚洲精品羞羞网站| 国产精品视频免费| 亚洲欧美另类久久久精品| 性做久久久久久| 久久精品国产在热久久| 国产成人av电影免费在线观看| 不卡视频一二三| 欧美精品aⅴ在线视频| 欧美一区二区播放| 精品处破学生在线二十三| 国产精品乱码人人做人人爱| 亚洲欧美日韩国产综合| 日本伊人精品一区二区三区观看方式| 九色综合国产一区二区三区| 成人听书哪个软件好| 欧美午夜影院一区| 国产三级精品在线| 亚洲成人在线免费| 91女神在线视频| 欧美色区777第一页| 日韩美一区二区三区| 亚洲欧洲精品天堂一级| 日韩av在线免费观看不卡| av在线不卡网| 日韩女优av电影| 一区二区三区在线看| 激情小说亚洲一区| 色94色欧美sute亚洲线路一久| 欧美人牲a欧美精品| 欧美经典一区二区| 奇米影视在线99精品| 91亚洲精华国产精华精华液| 欧美一区二区三区在线观看| 国产精品卡一卡二| 看片网站欧美日韩| 欧美性受极品xxxx喷水| 久久精品视频一区| 天天综合色天天| 在线观看国产一区二区| 国产日产欧美一区| 久久99精品久久只有精品| 欧美视频精品在线观看| 18成人在线观看| 国产美女精品在线| 日韩小视频在线观看专区| 亚洲最大成人综合| 97se亚洲国产综合在线| 日本一区二区电影| 国产精品伊人色| 久久久夜色精品亚洲| 精品一区二区三区在线观看国产| 欧美日韩高清一区二区| 亚洲一二三区不卡| 91视频免费播放| 国产精品色在线| 国产在线观看一区二区| 日韩欧美中文一区二区| 亚洲超碰精品一区二区| 精品视频一区三区九区| 一区二区在线观看av| 99久免费精品视频在线观看| 国产欧美一区二区在线观看| 国产一区二区不卡| 国产无一区二区| 成人污污视频在线观看| 国产精品美女久久久久久2018 | 久久草av在线| 日韩午夜电影在线观看| 久久99日本精品| 久久久亚洲高清|