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

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

?? halsrf04.h

?? 基于CC1100和ATMEGA128開發的無線機器人控制程序
?? H
?? 第 1 頁 / 共 2 頁
字號:
    BYTE MDMCFG0;   // Modem configuration.
    BYTE CHANNR;    // Channel number.
    BYTE DEVIATN;   // Modem deviation setting (when FSK modulation is enabled).
    BYTE FREND1;    // Front end RX configuration.
    BYTE FREND0;    // Front end RX configuration.
    BYTE MCSM0;     // Main Radio Control State Machine configuration.
    BYTE FOCCFG;    // Frequency Offset Compensation Configuration.
    BYTE BSCFG;     // Bit synchronization Configuration.
    BYTE AGCCTRL2;  // AGC control.
    BYTE AGCCTRL1;  // AGC control.
    BYTE AGCCTRL0;  // AGC control.
    BYTE FSCAL3;    // Frequency synthesizer calibration.
    BYTE FSCAL2;    // Frequency synthesizer calibration.
    BYTE FSCAL1;    // Frequency synthesizer calibration.
    BYTE FSCAL0;    // Frequency synthesizer calibration.
    BYTE FSTEST;    // Frequency synthesizer calibration control
    BYTE TEST2;     // Various test settings.
    BYTE TEST1;     // Various test settings.
    BYTE TEST0;     // Various test settings.
    BYTE IOCFG2;    // GDO2 output pin configuration
    BYTE IOCFG0;    // GDO0 output pin configuration
    BYTE PKTCTRL1;  // Packet automation control.
    BYTE PKTCTRL0;  // Packet automation control.
    BYTE ADDR;      // Device address.
    BYTE PKTLEN;    // Packet length.
    
} RF_SETTINGS;

    





//-------------------------------------------------------------------------------------------------------




//-------------------------------------------------------------------------------------------------------
//  void RfWriteRfSettings(RF_SETTINGS *pRfSettings)
//
//  DESCRIPTION:
//      This function is used to configure the CC2500 based on a given rf setting
//
//  ARGUMENTS:
//      RF_SETTINGS *pRfSettings
//          Pointer to a struct containing rf register settings
//-------------------------------------------------------------------------------------------------------
void halRfWriteRfSettings(RF_SETTINGS *pRfSettings);




//-------------------------------------------------------------------------------------------------------
//  void halRfSendPacket(BYTE *txBuffer, UINT8 size)
//
//  DESCRIPTION:
//      This function can be used to transmit a packet with packet length up to 63 bytes.
//      To use this function, GD02 must be configured to be asserted when sync word is sent and 
//      de-asserted at the end of the packet => halSpiWriteReg(CCxxx0_IOCFG2, 0x06);
//      The function implements polling of GDO2. First it waits for GD02 to be set and then it waits
//      for it to be cleared.  
//      
//  ARGUMENTS:
//      BYTE *txBuffer
//          Pointer to a buffer containg the data that are going to be transmitted
//
//      UINT8 size
//          The size of the txBuffer
//-------------------------------------------------------------------------------------------------------

void halRfSendPacket(BYTE *txBuffer, UINT8 size);




//-------------------------------------------------------------------------------------------------------
//  BOOL halRfReceivePacket(BYTE *rxBuffer, UINT8 *length)
//
//  DESCRIPTION: 
//      This function can be used to receive a packet of variable packet length (first byte in the packet
//      must be the length byte). The packet length should not exceed the RX FIFO size.
//      To use this function, GD02 must be configured to be asserted when sync word is sent and 
//      de-asserted at the end of the packet => halSpiWriteReg(CCxxx0_IOCFG2, 0x06);
//      The function implements polling of GDO2. First it waits for GD02 to be set and then it waits
//      for it to be cleared.  
//  
//  ARGUMENTS:
//      BYTE *rxBuffer
//          Pointer to the buffer where the incoming data should be stored
//      UINT8 *length
//          Pointer to a variable containing the size of the buffer where the incoming data should be
//          stored. After this function returns, that variable holds the packet length.
//          
//  RETURN VALUE:
//      BOOL
//          TRUE:   CRC OK
//          FALSE:  CRC NOT OK
//-------------------------------------------------------------------------------------------------------
//BOOL halRfReceivePacket(BYTE *rxBuffer, UINT8 *length);

BOOL halRfReceivePacket(BYTE *rxBuffer, UINT8 length);



//-------------------------------------------------------------------------------------------------------
//  void halRfSendPacketSerial(BYTE *txBuffer, UINT8 size, UINT8 startOfPayload, BOOL crcEnable)
//
//  DESCRIPTION:
//      This function transmits a packet using synchronous serial mode. The radio must be configured to 
//      use GIO1 as the serial clock (IOCFG1 = 0x0B) and GDO0 as serial synchronous data output
//      (IOCFG0 = 0x0C).
//      The packet should have the following format:
//      
//      ----------------------------------------------------------------------------------
//      | preamble | sync3 | sync2 | sync1 | sync0 | length byte | payload | crc1 | crc0 |
//      ----------------------------------------------------------------------------------
//
//      The length byte and the crc is optional.
//      Be aware that modifications to this function might be necessary if it is ported to other
//      MCUs or if the data rate is increased, due to timing issues.
//      The function is only meant to give an indication on how to use the serial synchronous mode
//      of the CCxx00.    
//      
//  ARGUMENTS:
//      BYTE *txBuffer
//          Pointer to array containing the packet to be sent.
//          For example:
//          BYTE xdata txBuffer[] = {0x55,  0x55,   0x55,   0x55,  Preamble
//                                   SYNC3, SYNC2,  SYNC1,  SYNC0, Sync word (it is not necessary to
//                                                                 transmit 4 sync bytes but the culSyncSearch
//                                                                 function in the cul library must be  
//                                                                 modified if other sync lengths should be used. 
//                                   3,     'A',    'B',    'C',   length byte + payload (length byte is optional, 
//                                                                 depending on how the receiver is configured
//                                                                 (fixed or variable packet length)
//                                   CRC1, CRC0};                  CRC bytes (optional)
//                                                                 This is just 2 dummy bytes which will be 
//                                                                 replaced with 'real' crc bytes if crc calculation 
//                                                                 is enabled
//
//      UINT8 size
//          Size of the txBuffer
// 
//      UINT8 startOfPayload
//          Indicates where in the txBuffer the crc calculation should start (crc is calculated over the
//          optional length byte and the payload.
//
//      BOOL crcEnable
//          TRUE: Calculate CRC and replace CRC1 and CRC0 in txBuffer with 'real' crc bytes
//          FALSE: CRC is not calculated and TX mode is terminated after the payload has been sent  
//-------------------------------------------------------------------------------------------------------
void halRfSendPacketSerial(BYTE *txBuffer, UINT8 size, UINT8 startOfPayload, BOOL crcEnable);




//-------------------------------------------------------------------------------------------------------
//  BOOL halRfReceivePacketSerial
//  (BYTE *rxBuffer, UINT8 sync3, UINT8 sync2, UINT8 sync1, UINT8 sync0, UINT8 fixedLength, BOOL crcEnable)
//
//  DESCRIPTION:
//      This function receives a packet using synchronous serial mode. The radio must be configured to 
//      use GIO1 as the serial clock (IOCFG1 = 0x0B) and GDO0 as serial synchronous data output
//      (IOCFG0 = 0x0C).
//      The packets received by this function should have the following format:
//      
//      ----------------------------------------------------------------------------------
//      | preamble | sync3 | sync2 | sync1 | sync0 | length byte | payload | crc1 | crc0 |
//      ----------------------------------------------------------------------------------
//
//      The length byte and the crc is optional.
//      Be aware that modifications to this function might be necessary if it is ported to other
//      MCUs or if the data rate is increased, due to timing issues.
//      The function is only meant to give an indication on how to use the serial synchronous mode
//      of the CCxx00.    
//
//  ARGUMENTS:
//      BYTE *rxBuffer
//          Pointer to array where the received packet is being stored
//
//      UINT8 sync3, UINT8 sync2 UINT8 sync1, UINT8 sync0
//          Sync word to search for. If one wants to send a sync word of a different length it is 
//          necessary to modify the culSyncSearch function, found in the cul folder 
//          (cul = Chipcon Utility Library).
//
//      UINT8 fixedLength
//          Length of data to be received after sync word is found. If fixedLength = 0, this means that
//          the length byte is given as the first byte received after sync word is found.
//
//      BOOL crcEnable
//          If crcEnable is TRUE, two bytes are received after the payload. This is crc1 and crc0.
//          A crc check will be performed on the received data and compared to crc1 and crc0.
// 
//  RETURN VALUE:
//      BOOL
//          crcEnable == TRUE =>    TRUE:   CRC OK
//                                  FALSE:  CRC NOT OK
//          crcEnable == FALSE =>   Return TRUE when a packet is received            
//-------------------------------------------------------------------------------------------------------
BOOL halRfReceivePacketSerial
(BYTE *rxBuffer, UINT8 sync3, UINT8 sync2, UINT8 sync1, UINT8 sync0, UINT8 fixedLength, BOOL crcEnable);



/*******************************************************************************************************
 *******************************************************************************************************
 **************************              Utility functions          ************************************
 *******************************************************************************************************
 *******************************************************************************************************/

//-------------------------------------------------------------------------------------------------------
//  DESCRIPTION:
//      Runs an idle loop for [timeout] microseconds.
//-------------------------------------------------------------------------------------------------------
void halWait(BYTE timeout);




#endif//HALSRF04_H

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩欧美国产一二三区| 337p亚洲精品色噜噜噜| 日本麻豆一区二区三区视频| 国产午夜一区二区三区| 欧美浪妇xxxx高跟鞋交| 成人久久久精品乱码一区二区三区| 亚洲午夜一区二区三区| 国产日本亚洲高清| 56国语精品自产拍在线观看| av资源站一区| 国产美女在线观看一区| 日本中文在线一区| 亚洲美女电影在线| 国产精品久久久久aaaa樱花 | 一区二区三区在线免费| 久久精品一区蜜桃臀影院| 在线播放视频一区| 在线视频中文字幕一区二区| 成a人片国产精品| 大胆亚洲人体视频| 韩国午夜理伦三级不卡影院| 午夜国产不卡在线观看视频| 一区二区三区国产精华| 亚洲三级视频在线观看| 中文字幕精品一区二区精品绿巨人 | 日韩欧美国产一区二区三区| 欧美日精品一区视频| 91视视频在线观看入口直接观看www| 国产在线精品视频| 精品一区在线看| 精品制服美女久久| 捆绑调教一区二区三区| 免费观看91视频大全| 日韩va欧美va亚洲va久久| 日韩电影在线一区二区| 蜜臀久久久99精品久久久久久| 亚洲福利视频一区二区| 天天综合色天天| 日韩中文字幕区一区有砖一区 | 粉嫩蜜臀av国产精品网站| 狠狠色丁香九九婷婷综合五月| 蜜芽一区二区三区| 六月丁香婷婷久久| 国产一区二区三区免费播放| 国产乱对白刺激视频不卡| 国产一区二区三区高清播放| 国产精品亚洲专一区二区三区| 国产一区二区不卡在线| 大胆亚洲人体视频| 色综合色综合色综合色综合色综合 | 国产一区二区在线影院| 国产精品88av| www.亚洲精品| 欧美日韩中文字幕一区二区| 欧美精品一二三| 欧美成人艳星乳罩| 日本一区二区不卡视频| 成人欧美一区二区三区白人| 一区二区久久久久| 日本一区中文字幕| 国产精品456露脸| 97久久精品人人做人人爽50路| 欧美无砖专区一中文字| 欧美一二三在线| 国产午夜精品美女毛片视频| 自拍偷拍亚洲激情| 日本视频中文字幕一区二区三区| 国产真实乱子伦精品视频| 成+人+亚洲+综合天堂| 欧美日韩一区二区三区不卡 | 亚洲日本免费电影| 婷婷丁香久久五月婷婷| 老色鬼精品视频在线观看播放| 国产.欧美.日韩| 欧美综合在线视频| 欧美大片拔萝卜| 综合久久久久综合| 青青草国产精品亚洲专区无| 成人午夜免费av| 在线播放91灌醉迷j高跟美女| 久久综合久久综合久久| 亚洲日本va在线观看| 老司机免费视频一区二区| 色综合中文字幕国产| 7777精品伊人久久久大香线蕉的| 国产日韩欧美精品一区| 五月激情六月综合| 成人黄色777网| 欧美一区二区三区免费视频| 国产精品毛片高清在线完整版| 午夜精品免费在线观看| av网站免费线看精品| 日韩午夜在线影院| 亚洲综合激情网| 高清不卡一区二区在线| 日韩免费看网站| 亚洲影视资源网| 成人午夜电影久久影院| 日韩欧美区一区二| 亚洲国产日韩综合久久精品| 成人不卡免费av| 久久―日本道色综合久久| 亚洲成av人片在线| 91啪亚洲精品| 中文一区二区完整视频在线观看| 日本午夜精品视频在线观看| 在线观看91精品国产入口| 色综合天天综合网天天看片| 成人av网址在线观看| 精品国产乱码久久久久久老虎 | 91精品国产入口在线| 亚洲天堂免费看| 国产成人精品aa毛片| 精品处破学生在线二十三| 午夜精品一区二区三区免费视频| 91麻豆蜜桃一区二区三区| 国产精品久久毛片| 国产黑丝在线一区二区三区| 日韩欧美一区二区免费| 日韩高清不卡一区二区| 在线电影国产精品| 午夜国产精品影院在线观看| 欧美日韩视频在线观看一区二区三区| 亚洲欧美影音先锋| 99国产精品国产精品毛片| 亚洲欧美在线观看| 99re6这里只有精品视频在线观看| 久久精品视频免费| 国产精品888| 中文字幕精品一区| 成人免费毛片嘿嘿连载视频| 国产喂奶挤奶一区二区三区| 国产精品538一区二区在线| 国产色综合久久| 成人一区二区三区视频| 国产精品久久99| a4yy欧美一区二区三区| 中文字幕不卡在线观看| 99re成人在线| 亚洲精品欧美激情| 精品婷婷伊人一区三区三| 亚洲成人av中文| 制服丝袜中文字幕亚洲| 久久精品国产99国产| 久久这里只有精品首页| 丁香婷婷综合激情五月色| 国产精品国产馆在线真实露脸| jlzzjlzz国产精品久久| 夜夜嗨av一区二区三区| 欧美日韩国产在线观看| 日韩av电影免费观看高清完整版 | 国产偷国产偷亚洲高清人白洁| 成人午夜视频网站| 一区二区三区欧美激情| 欧美精品日韩综合在线| 精品一区二区三区日韩| 国产嫩草影院久久久久| 日本丶国产丶欧美色综合| 午夜精品成人在线| 337p日本欧洲亚洲大胆色噜噜| 粉嫩久久99精品久久久久久夜| 中文字幕综合网| 91精品蜜臀在线一区尤物| 国产一区二区免费在线| 亚洲三级视频在线观看| 91精品国产一区二区三区| 国产自产v一区二区三区c| 综合亚洲深深色噜噜狠狠网站| 欧美日本乱大交xxxxx| 国产精选一区二区三区| 亚洲人成精品久久久久久| 欧美精品国产精品| 成人一级片网址| 日韩综合小视频| 中文字幕久久午夜不卡| 欧美人牲a欧美精品| 国产传媒日韩欧美成人| 亚洲一区二区三区自拍| 久久欧美一区二区| 欧美亚洲国产bt| 国产精品亚洲一区二区三区在线| 亚洲午夜一二三区视频| 欧美国产日本韩| 91精品国产乱| 91丨porny丨最新| 精品一区二区免费看| 亚洲免费av观看| 日本一区二区三区久久久久久久久不 | 欧美一区二区成人| 91蝌蚪国产九色| 免费看欧美女人艹b| 亚洲欧洲日产国码二区| 精品国产凹凸成av人导航| 在线观看亚洲专区| 成人午夜av影视| 精品一区二区三区久久久| 亚洲最新视频在线观看| 国产精品毛片无遮挡高清| 精品日韩成人av| 欧美日韩色综合|