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

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

?? cul.h

?? zigbee無線網絡源碼包
?? H
?? 第 1 頁 / 共 3 頁
字號:
*      data from the AES module. The function _culDmaToAes(...)_ is used to set
*      up a DMA descriptor for transferring data to be converted to the AES
*      module.
*
* Parameters:
*
* @param  DMA_DESC* pDmaChannel
*         Pointer to the DMA descriptor to be used for DMA transfer of data
*         converted by the AES module.
* @param  BYTE*	 pDstAddr
*         Pointer to the start address where the converted data is to be stored.
*         The length of this data field should be a multiplum of 16 bytes, as
*         the AES module operates on blocks of 16 bytes (128 bit).
* @param  WORD	 length
*         Number of bytes to be converted in total. This number should be a
*         multiplum of 16 bytes, as the AES module operates on blocks of 16
*         bytes (128 bit).
* @param  BOOL	 generateInterrupt
*         If this parameter is TRUE the DMA channel will generate an interrupt
*         request when done. In order to generate an interrupt, the lines
*         INT_ENABLE(INUM_DMA, INT_ON); and EAL = TRUE; must also be included.
*
* @return BOOL
*         Function returns TRUE if the configuration was successful.
*
******************************************************************************/
BOOL culDmaFromAes(DMA_DESC* pDmaChannel, BYTE __xdata* pDstAddr, WORD length, BOOL generateInterrupt);


/******************************************************************************
* @fn  culDmaFromRadio
*
* @brief
*      This function configures DMA transfer from the radio Rx FiFo. The first
*      byte of the data to be transferred contains the number of bytes to be
*      transfer. The Rx FiFo may contain up to 128 bytes. When done, the DMA
*      channel may generate an interrupt.
*
* Parameters:
*
* @param  DMA_DESC*	 pDmaChannel
*         A pointer to the DMA channel structure to be used for the transfer.
* @param  BYTE*	 pDstAddr
*         The start address in __xdata space to where the data is to be stored.
* @param  BOOL	 generateInterrupt
*         If TRUE, the DMA channel will generate an interrupt request upon
*         completion.
*
* @return void
*
******************************************************************************/
void culDmaFromRadio(DMA_DESC* pDmaChannel, BYTE* pDstAddr, BOOL generateInterrupt);



/******************************************************************************
* @fn  culDmaToRadio
*
* @brief
*      This function configures DMA transfer to the radio Tx FiFo.
*
* Parameters:
*
* @param  DMA_DESC*  pDmaChannel
*         A pointer to the DMA channel structure to be used for the transfer.
* @param  WORD       length
* @param  BYTE*      pSrcAddr
*         The start address in __xdata space of the data to be transferred.
* @param  BOOL       generateInterrupt
*         If TRUE, the DMA channel will generate an interrupt request upon
*         completion.
*
* @return void
*
******************************************************************************/
void culDmaToRadio(DMA_DESC* pDmaChannel, WORD length, BYTE * pSrcAddr, BOOL generateInterrupt);


/******************************************************************************
* @fn  culDmaToUart0
*
* @brief       Description of the function.
*      This function configures a DMA transfer to UART0.
*
* Parameters:
*
* @param  DMA_DESC*	 pDmaChannel
*         A pointer to the DMA channel structure to be used for the transfer.
* @param  WORD	 length
*         The number of bytes to be transferred.
* @param  BYTE*	 pSrcAddr
*         The start address in __xdata space of the data to be transferred.
* @param  BOOL	 generateInterrupt
*         If TRUE, the DMA channel will generate an interrupt request upon completion.
*
* @return void
*
******************************************************************************/
void culDmaToUart0(DMA_DESC* pDmaChannel, WORD length, BYTE * pSrcAddr, BOOL generateInterrupt);



/******************************************************************************
*******************      TIMER4 administrator functions    ********************
******************************************************************************/

// Structure for the TIMER administrator entry table
typedef struct {
    BYTE        counter;
    BYTE        timeout;
    FUNCTION*   callBackFunction;
} TIMER4_TABLE_ENTRY;

#define TIMER_ADM_TABLE_LENGTH   3


/******************************************************************************
* @fn  culTimer4AdmInit
*
* @brief
*      This function sets up the timer 4 administration. The table is cleared,
*      timer 4 is set up to generate interrupts at a 1m-second interval,
*      timer 4 interrupt is enabled and the timer is turned on.
*
* Parameters:
*
* @param  void
*
* @return void
*
******************************************************************************/
void culTimer4AdmInit(void);


/******************************************************************************
* @fn  T4_Adm_IRQ
*
* @brief
*     This interrupt routine is run each time timer 4 generates an interrupt
*     request (every m-second). The table is parsed through, and the counters
*     are incremented. If a counter is equal to the timeout value in the table,
*     the _callBackFunction_ is called and the counter is reset. At the end,
*     the interrupt flags are cleared.
*
* Parameters:
*
* @param  void
*
* @return void
*
******************************************************************************/
__interrupt void T4_Adm_IRQ (void);


/******************************************************************************
* @fn  culTimer4AdmSet
*
* @brief
*      This function arranges calling of the _callBackFunction_ at a desired
*      time interval in m-seconds. Up to _TIMER_ADM_TABLE_LENGTH_ different
*      functions can be set up to be run at different time intervals. This way
*      timer 4 is configured to run many interrupt routines at different time
*      intervals, thus leaving the other timers free to be configured as desired.
*
* Parameters:
*
* @param  DWORD	 timeout
*         The number of m-seconds between each time the _callBackFunction_
*         is run.
* @param  FUNCTION*	 callBackFunction
*         Pointer to the function to be run at the given interval. The
*         _callBackFunction_ must be of the type _void callBackFunction(void)_,
*         i.e. no arguments and no return value.
*
* @return BYTE
*         The entry number in the table. The value 0xFF indicates that an
*         error has occured and that the registration was unsuccessful. The
*         returned value must be used as an argument when the entry is to be
*         cleared using the function _culTimer4AdmClear(...)_.
*
******************************************************************************/
BYTE culTimer4AdmSet(DWORD timeout, FUNCTION* callBackFunction);



/******************************************************************************
* @fn  culTimer4AdmClear
*
* @brief
*      This function clears the table entry _entry_ from the table of functions
*      to be called at different timeouts.
*
* Parameters:
*
* @param  BYTE	 entry
*         The index number of the entry in the table that is to be cleared.
*         This value must be identical to the returned value from the function
*         _culTimer4AdmSet(...)_.
*
* @return void
*
******************************************************************************/
void culTimer4AdmClear(BYTE entry);



/******************************************************************************
* @fn  culTimer4AdmReset
*
* @brief
*      This function resets the counter of the entry in question.
*
* Parameters:
*
* @param  BYTE	 entry
*         The index number of the entry in the table that is reset. This value
*         must be identical to the returned value from the function
*         _culTimer4AdmSet(...)_.
*
* @return void
*
******************************************************************************/
void culTimer4AdmReset(BYTE entry);


/******************************************************************************
*******************      Simple Packet Protocol (SPP)      ********************
******************************************************************************/
#define SPP_MAX_PAYLOAD_LENGTH          122
#define SPP_HEADER_AND_FOOTER_LENGTH    5
#define SPP_FOOTER_LENGTH               2
#define SPP_ACK_LENGTH                  1

typedef struct{
    BYTE payloadLength;
    BYTE destAddress;
    BYTE flags;
    BYTE *payload;
}SPP_TX_STRUCT;

typedef struct{
    BYTE payloadLength;
    BYTE destAddress;
    BYTE srcAddress;
    BYTE flags;
    BYTE payload[SPP_MAX_PAYLOAD_LENGTH + SPP_FOOTER_LENGTH];
}SPP_RX_STRUCT;

#define BROADCAST_ADDRESS               0
#define WAIT_UNTIL_RECEIVE              0

#define SEQUENCE_BIT                    0x80
#define RETRANSMISSION                  0x04
#define ACK                             0x02
#define DO_ACK                          0x01
#define DO_NOT_ACK                      0x00


#define ACK_TIMEOUT                     15
#define ACK_RETRIES                     3

// TX status flags
#define TX_IN_PROGRESS                  0x80
#define TX_SUCCESSFUL                   0x40
#define DEST_UNREACHABLE                0x20
#define TX_IDLE                         0x00

// RX status flags
#define RX_IN_PROGRESS                  0x80
#define PACKET_RECEIVED                 0x40
#define RX_WAIT                         0x20
#define RX_COMPLETE                     0x10
#define RX_IDLE                         0x00

// sppSend return values
#define CHANNEL_BUSY                    0x04
#define TOO_LONG                        0x08



/******************************************************************************
* @fn  sppInit
*
* @brief
*      This function initialises the Simple Packet Protocol (SPP). Two DMA
*      channels are requested from the DMA administrator and set up to transfer
*      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

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
99久久99久久精品免费观看 | 天堂在线亚洲视频| 亚洲一区二区三区影院| 三级欧美韩日大片在线看| 国内精品伊人久久久久av影院| 成人免费视频国产在线观看| 91激情五月电影| 欧美va天堂va视频va在线| 中文字幕第一区二区| 一区二区激情视频| 激情六月婷婷久久| 色一情一乱一乱一91av| 欧美日韩在线三级| 成熟亚洲日本毛茸茸凸凹| 一二三四社区欧美黄| 蜜臀va亚洲va欧美va天堂| 国内偷窥港台综合视频在线播放| 91麻豆6部合集magnet| 91精品久久久久久久久99蜜臂| 久久嫩草精品久久久精品一| 亚洲欧洲色图综合| 日韩福利视频网| av一区二区三区四区| 色综合久久久网| 久久久久久久久一| 裸体健美xxxx欧美裸体表演| 欧美日本一道本| 亚洲一二三四区| 日本久久电影网| 国产精品日日摸夜夜摸av| 国产麻豆视频一区二区| 久久欧美一区二区| 国产综合成人久久大片91| 日韩免费福利电影在线观看| 日本不卡不码高清免费观看| 在线不卡免费欧美| 午夜精品久久一牛影视| 欧美高清你懂得| 日韩av电影免费观看高清完整版在线观看| 色婷婷av久久久久久久| 亚洲精品精品亚洲| 91福利视频久久久久| 亚洲一区二区三区不卡国产欧美| 91久久精品国产91性色tv| 亚洲欧美日韩中文播放| 色综合久久88色综合天天免费| 国产精品国产成人国产三级| 波多野结衣在线aⅴ中文字幕不卡| 中文字幕国产精品一区二区| k8久久久一区二区三区 | 欧美三级中文字幕在线观看| 一区二区三区欧美久久| 欧洲精品视频在线观看| 亚洲国产毛片aaaaa无费看| 欧洲生活片亚洲生活在线观看| 亚洲精品菠萝久久久久久久| 欧美性一级生活| 婷婷久久综合九色国产成人 | 丁香网亚洲国际| 国产精品国产三级国产普通话99| 99热精品国产| 亚洲成人免费观看| 欧美精品三级在线观看| 久久国产夜色精品鲁鲁99| 久久久777精品电影网影网| 国产69精品一区二区亚洲孕妇| 国产精品国产三级国产普通话蜜臀| 日本高清不卡视频| 奇米影视在线99精品| 久久久久久久久久久黄色| 成人av第一页| 亚洲一二三级电影| 日韩一区二区不卡| 国产二区国产一区在线观看| 亚洲色图在线看| 欧美精品久久天天躁| 激情小说亚洲一区| 中文字幕日韩一区| 精品1区2区3区| 激情深爱一区二区| 亚洲日本中文字幕区| 欧美丰满少妇xxxbbb| 国产资源精品在线观看| 18欧美亚洲精品| 欧美这里有精品| 国产真实精品久久二三区| 亚洲婷婷在线视频| 欧美精品少妇一区二区三区 | 亚洲国产精品欧美一二99| 91精品国产综合久久国产大片| 国产白丝精品91爽爽久久| 悠悠色在线精品| 日韩美女视频在线| 91在线观看免费视频| 蜜桃视频在线观看一区| 国产精品免费av| 日韩一级片在线观看| 成年人网站91| 免费高清在线一区| 亚洲色图20p| 欧美成人一区二区三区片免费| 91亚洲大成网污www| 麻豆久久一区二区| 亚洲精品日韩专区silk| 精品少妇一区二区三区视频免付费| 99re亚洲国产精品| 久久黄色级2电影| 一区二区三区在线视频免费观看| 欧美变态tickle挠乳网站| 色天天综合色天天久久| 国产主播一区二区| 日韩电影一二三区| 亚洲乱码国产乱码精品精98午夜 | 日韩欧美亚洲国产另类| 色又黄又爽网站www久久| 美洲天堂一区二卡三卡四卡视频| 亚洲私人黄色宅男| 国产日韩欧美不卡| 91精品国模一区二区三区| www.激情成人| 国产精品99久久久久久宅男| 日韩综合小视频| 亚洲免费观看高清完整版在线观看熊| 久久久电影一区二区三区| 欧美肥妇毛茸茸| 欧美在线一二三四区| av中文字幕一区| 国产伦理精品不卡| 热久久国产精品| 亚洲综合久久av| 成人免费一区二区三区在线观看 | 91精品国产欧美日韩| 91国模大尺度私拍在线视频| av不卡在线播放| 国产精品白丝jk黑袜喷水| 久草在线在线精品观看| 日韩中文欧美在线| 亚洲国产精品精华液网站| 一区二区三区中文在线| 亚洲欧洲日本在线| 国产精品九色蝌蚪自拍| 久久众筹精品私拍模特| 欧美tickling网站挠脚心| 欧美精品18+| 8v天堂国产在线一区二区| 欧美色区777第一页| 色欧美片视频在线观看在线视频| 成人动漫视频在线| 丰满岳乱妇一区二区三区| 国产老肥熟一区二区三区| 国产在线播精品第三| 国内精品国产成人国产三级粉色| 久久精品国产秦先生| 日本伊人精品一区二区三区观看方式 | 欧美专区在线观看一区| 色呦呦国产精品| 91视频免费观看| 色8久久精品久久久久久蜜| 在线看国产一区| 91九色最新地址| 欧美日韩亚洲综合一区| 欧美三级韩国三级日本三斤| 欧美在线视频日韩| 欧美军同video69gay| 欧美日韩久久久| 欧美卡1卡2卡| 欧美成人女星排行榜| 2024国产精品视频| 国产亚洲成年网址在线观看| 亚洲国产高清aⅴ视频| 国产精品电影一区二区| 亚洲精品老司机| 亚洲不卡一区二区三区| 天天色 色综合| 久久精品久久精品| 国产在线不卡一区| 成人高清视频免费观看| 色域天天综合网| 在线播放中文一区| 欧美成人午夜电影| 国产精品卡一卡二卡三| 亚洲精品视频在线看| 亚洲国产精品一区二区久久恐怖片| 奇米影视一区二区三区| 国产在线观看免费一区| 成人高清伦理免费影院在线观看| 色八戒一区二区三区| 欧美高清性hdvideosex| 久久久久国产精品麻豆| 亚洲欧洲国产日韩| 亚洲午夜久久久久久久久久久| 六月丁香婷婷色狠狠久久| 国产成人鲁色资源国产91色综| 97久久久精品综合88久久| 在线观看日韩毛片| 日韩一卡二卡三卡四卡| 国产精品美女久久久久高潮| 一区二区三区四区中文字幕| 人人狠狠综合久久亚洲| 成人亚洲一区二区一|