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

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

?? cul.h

?? ti-Chipcon CC251x 2.4G Soc應用開發源碼實例。包括rf,powermodes,clockmodes,flashRW,interrupts,timer,pwm,uart...所有
?? 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一区二区三区免费野_久草精品视频
亚洲激情在线播放| 欧美亚洲尤物久久| 日韩欧美国产一区二区三区 | 国产亚洲午夜高清国产拍精品| 亚洲国产精品久久久男人的天堂| 色综合久久综合网97色综合| 亚洲免费观看高清完整版在线观看熊| 波多野结衣亚洲| 亚洲欧洲精品一区二区三区| av中文字幕不卡| 亚洲视频免费看| 一本高清dvd不卡在线观看| 国产精品久久久久久久久久久免费看| 风间由美一区二区三区在线观看| 国产精品视频在线看| 99久久er热在这里只有精品15 | 国产大片一区二区| 国产色产综合色产在线视频| 粗大黑人巨茎大战欧美成人| 国产精品免费观看视频| 色网站国产精品| 亚洲成人免费在线| 欧美大片一区二区| 国产精品一区二区黑丝| 欧美国产禁国产网站cc| 91搞黄在线观看| 另类小说综合欧美亚洲| 久久久国产精品午夜一区ai换脸| 成人黄色免费短视频| 中文字幕第一区综合| 欧美天堂亚洲电影院在线播放| 视频一区视频二区中文字幕| 精品国产凹凸成av人网站| 精品视频资源站| 色哟哟精品一区| 91精品国产色综合久久| 精品日韩一区二区三区| 欧美激情在线一区二区| 国产日韩欧美在线一区| 亚洲黄色免费网站| 理论片日本一区| av不卡在线观看| 欧美疯狂做受xxxx富婆| 国产亚洲精品久| 中文子幕无线码一区tr| 欧美性猛片aaaaaaa做受| 午夜精品福利一区二区三区av| 91麻豆精品国产91久久久久久| 奇米精品一区二区三区在线观看 | 884aa四虎影成人精品一区| 日本sm残虐另类| 国产欧美日韩中文久久| 欧美人与性动xxxx| caoporn国产一区二区| 五月婷婷久久丁香| 国产精品福利一区| 精品久久久久久久久久久院品网 | 午夜精品视频一区| 成人一区二区三区视频| 91超碰这里只有精品国产| 久久嫩草精品久久久久| 午夜精品久久久久久久| 成人理论电影网| 日韩女优制服丝袜电影| 亚洲精品国产一区二区精华液 | 97久久精品人人做人人爽| 日韩欧美在线综合网| 一级做a爱片久久| 国产福利一区二区三区| 欧美一区二区女人| 亚洲一区二区在线免费观看视频| 国产一区二区福利| 欧美一级电影网站| 亚洲图片欧美综合| 色呦呦网站一区| 中文字幕一区二区三区四区| 国产麻豆精品视频| 国产精品18久久久久久久久 | 国产精品欧美久久久久一区二区| 精品日韩一区二区三区| 蜜臀av性久久久久蜜臀aⅴ四虎| 国产一区二区三区免费看| 91精品国产色综合久久ai换脸 | eeuss影院一区二区三区| 亚洲精品一线二线三线无人区| 亚洲国产sm捆绑调教视频 | 精品国产一区二区在线观看| 午夜久久久久久电影| 欧美色图第一页| 亚洲午夜免费视频| 色婷婷一区二区三区四区| 国产精品久久久久久久久晋中| 国产很黄免费观看久久| 久久精品一二三| 岛国精品一区二区| 国产欧美精品一区| 成人在线综合网| 亚洲欧洲美洲综合色网| 99久久精品99国产精品| 亚洲丝袜美腿综合| 欧美色综合网站| 午夜久久久影院| 欧美va亚洲va| 国产成人av电影在线观看| 久久久久久99久久久精品网站| 国产成人亚洲精品青草天美| 国产精品美女www爽爽爽| a美女胸又www黄视频久久| 亚洲精品乱码久久久久久黑人| 欧美伊人久久大香线蕉综合69| 亚洲欧美一区二区三区久本道91 | 欧美专区在线观看一区| 无码av中文一区二区三区桃花岛| 日韩一级二级三级| 国产成人免费xxxxxxxx| 亚洲欧美日韩在线| 欧美顶级少妇做爰| 高清国产一区二区| 亚洲一区二区三区四区五区中文| 色综合网站在线| 欧美日本一区二区三区四区| 99re视频精品| 欧美日韩一级片网站| 精品久久久久一区| 久久99久久久欧美国产| 色美美综合视频| 亚洲国产精品欧美一二99| 337p亚洲精品色噜噜噜| 国产黄人亚洲片| 污片在线观看一区二区| 色综合一个色综合亚洲| 成人午夜视频网站| 亚洲一区电影777| 欧美激情一区二区三区蜜桃视频| 亚洲少妇最新在线视频| 91精品国产色综合久久| 免费观看久久久4p| 日韩免费电影一区| 91麻豆精品视频| 亚瑟在线精品视频| 樱花草国产18久久久久| 捆绑紧缚一区二区三区视频| 日本高清不卡在线观看| 午夜精品123| 26uuu国产日韩综合| 欧美丝袜丝交足nylons图片| 风间由美一区二区av101 | 欧美丰满美乳xxx高潮www| 国产成人精品aa毛片| 奇米精品一区二区三区四区 | 日日欢夜夜爽一区| 亚洲一区二区三区中文字幕 | 日韩免费福利电影在线观看| 欧美精品日韩一本| 成人av免费观看| 久久99国产精品免费| 久久九九久久九九| 中文字幕乱码亚洲精品一区| 美国av一区二区| 在线免费观看日韩欧美| 国产精品日韩成人| 国产呦萝稀缺另类资源| 日本三级亚洲精品| 偷窥少妇高潮呻吟av久久免费| 亚洲欧美电影院| 亚洲精品视频在线观看网站| 中文字幕在线观看不卡| 欧美精品一二三四| 91精品福利视频| 91亚洲男人天堂| 色综合久久中文综合久久97| 成+人+亚洲+综合天堂| 国产精品系列在线播放| 国产激情一区二区三区| 久久精品国产**网站演员| 蜜臀av性久久久久av蜜臀妖精 | 国产日韩欧美电影| 国产精品亚洲人在线观看| 国产精品国产成人国产三级| 亚洲人成网站色在线观看| 国产精品福利一区二区三区| 首页国产欧美久久| 高清免费成人av| 欧美一区二区大片| 中文字幕中文字幕在线一区 | 日韩无一区二区| 久久精品一区八戒影视| 亚洲国产日韩a在线播放| 精品一区二区三区的国产在线播放| 成人黄色777网| 欧美sm美女调教| 亚洲国产一区二区视频| 高清成人免费视频| 欧美猛男超大videosgay| 国产视频视频一区| 麻豆精品一区二区av白丝在线| 在线中文字幕一区二区| 国产女人水真多18毛片18精品视频 | 中文字幕一区二区三区不卡| 琪琪久久久久日韩精品|