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

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

?? cul.h

?? zigbee 2430 演示 就是個演示程序么 說這么多干嘛 暈
?? H
?? 第 1 頁 / 共 3 頁
字號:
/******************************************************************************
Filename:     cul.h
Target:       cc2430
Revised:      16/12-2005
Revision:     1.0

Description:
Chipcon Utility Library

Provides utility functions for DMA administration, timer administration, SPP
handling, etc.

******************************************************************************/
#ifndef CUL_H
#define CUL_H


#include "hal.h"


typedef void FUNCTION(void);

/******************************************************************************
*******************     DMA administration functions         ******************
******************************************************************************/

// The number of DMA channels available for the DMA administrator
#define DMA_ADM_NUMBER_OF_CHANNELS      5

// Structure for the DMA administration table
typedef struct {
    BYTE        assigned;
    FUNCTION*   callBackFunction;
} DMA_TABLE_ENTRY;



/******************************************************************************
* @fn  culDmaInit
*
* @brief
*      This function resets the table for assigning DMA channels 1 to 4, the
*      table consisting of the DMA descriptors 1 to 4 and clears all interrupt
*      flags and disarms all DMA channels 1 to 4. The configuration for
*      channel 0 is left unchanged. The address of the DMA descriptors is set
*      in register DMA1CFG.
*
* Parameters:
*
* @param  void
*
* @return void
*
******************************************************************************/
void culDmaInit(void);

/******************************************************************************
* @fn  dma_IRQ
*
* @brief
*     This interrupt routine is run each time the DMA generates an interrupt.
*     According to the interrupt flag of the DMA channel, the corresponding
*     callBackFunction is called. The interrupt flags are cleared.
*
* Parameters:
*
* @param  void
*
* @return void
*
******************************************************************************/
__interrupt void dma_IRQ (void);

/******************************************************************************
* @fn  culDmaAlloc
*
* @brief
*      This function administrates the allocation of the DMA channels 1 to 4.
*      This function, along with culDmaFreeChannel(...), keeps track of the
*      availability of the DMA channels. When this function is called, the
*      table _dmaTable_ is searched for an unused channel. If an unused channel
*      is found, the channel is reserved and the number of the assigned channel
*      is handed to the calling function. A pointer to the descriptor of the
*      assigned DMA channel is returned. At the time of editing the table, all
*      interrupts are disabled in order to avoid that the table is edited by an
*      interrupt routine before the table is updated. If no DMA channel is
*      available, the function returns 0 and the channel number pointed to by
*      _pDmaChannelNumber_ is set to 0.
*
*      This function leaves to the caller to arm the DMA channel and initiate
*      the transfer. Alternatively, the function culDmaSetUpChannel(...) could
*      be used to simplify the use of the DMA.
*
*      NOTE:   If the number pointed to by _pDmaChannelNumber_ is set to 0 by
*              this function, the allocation was unsuccessful. This must not be
*              interpreted as if DMA channel 0 has been  used.
*
* Parameters:
*
* @param  UINT8*    pDmaChannelNumber
*         Pointer to where the assigned DMA channel number is to be stored. If
*         this value is set to 0 by this function, no DMA channel was assigned.
*         (NOT that DMA channel 0 was used!)
* @param  FUNCTION* callBackFunction
*         This parameter is a pointer to the function to be called from an
*         interrupt routine when the DMA transfer is finished. The function
*         must be a [void <functionName>(void)] type. The configuration of
*         the interrupt routine must be performed manually. If no function
*         is to be called, please set this parameter to NULL (0x00);
*
* @return DMA_DESC*
*         Pointer to the assigned DMA structure. The calling function must set
*         this descriptor occording to the desired DMA transfer.
*
******************************************************************************/
DMA_DESC* culDmaAllocChannel(UINT8* pDmaChannelNumber, FUNCTION* callBackFunction);

/******************************************************************************
* @fn  culDmaFreeChannel
*
* @brief
*      This function frees a channel assigned by culDmaAlloc(...). When a
*      DMA channel no longer is in use, this function should be called with
*      the channel number as a parameter in order to make the  DMA channel
*      available for other functionality.
*
*      NOTE: Be careful not to free a channel which is still in use.
*
* Parameters:
*
* @param  BYTE	 dmaChannelNumber - Describe value.
*         Number of the channel to be freed. This number should be identical
*         to the number returned by culDmaAlloc(...) when the channel was
*         requested.
*
* @return void
*
******************************************************************************/
void culDmaFreeChannel(BYTE dmaChannelNumber);


/******************************************************************************
* @fn  culDmaSetUpChannel
*
* @brief
*      This function is used to initiate a DMA transfer. The function requests
*      an available DMA channel by using culDmaAlloc(...). The DMA descriptor
*      is copied into the list of assigned DMA desriptors. The channel is then
*      armed (meaning that the channel is active but not nescessarily started.)
*      If the Boolean expression _immediately_ is true, the DMA data transfer
*      is started. The number of the DMA channel used is returned. This
*      identifier should be used with the function culDmaFreeChannel(...) when
*      the DMA channel is no longer needed in order to make the channel
*      available for other transfers.
*
* Parameters:
*
* @param  DMA_DESC*	 pDmaDescriptor
*         Pointer to the DMA descriptor structure the channel data is to be
*         fetched from. The data at this pointer is copied into the list of
*         active DMA channels.
* @param  BOOL	 immediately
*         If this value is TRUE, the DMA transfer is started as soon as the
*         channel setup is complete. If FALSE, the channel will wait for either
*         a DMA trigger or that the transfer is initiated manually (through
*         the register DMAREQ).
* @param  FUNCTION*	 callBackFunction
*         This parameter is a pointer to the function to be called from an
*         interrupt routine when the DMA transfer is finished. The function
*         must be a [void <functionName>(void)] type. The configuration of
*         the interrupt routine must be performed manually. If no function is
*         to be called, please set this parameter to NULL (0x00);
*
* @return BYTE
*         The returned value indicates the DMA channel number used for the
*         transfer. If 0 is returned, the function call was unsuccessful,
*         most probably because all DMA channels were occupied.
*
*         NOTE: The return value 0 (0x00) does NOT indicate that DMA
*               channel 0 was used.
*
******************************************************************************/
BYTE culDmaSetUpChannel(DMA_DESC* pDmaDescriptor, BOOL immediately, FUNCTION* callBackFunction);


/******************************************************************************
* @fn  culSetDmaChannel0CallBack
*
* @brief
*      This function sets the callbackfunction to be called when DMA channel
*      0 finishes its transfer. This function is used in order to avoid
*      changing the DMA ISR.
*
* Parameters:
*
* @param  FUNCTION*	 pCallBackFunction
*
* @return void
*
******************************************************************************/
void culSetDmaChannel0CallBack(FUNCTION* pCallBackFunction);


/******************************************************************************
* @fn  culClearDmaChannel0CallBack
*
* @brief
*      This function clears the callbackfunction to be called when DMA
*      channel 0 finishes.
*
* Parameters:
*
* @param  void
*
* @return void
*
******************************************************************************/
void culClearDmaChannel0CallBack(void);


/******************************************************************************
* @fn  culDMAToFlash
*
* @brief       Description of the function.
*      This function configures DMA transfer of _length_ bytes starting from
*      _srcAddr_ to the flash. The flash address to be written must be set in
*      the register FADDR. The flash write address consists of 15 bits dividing
*      the 128 KB flash memory into 4 byte segments. Hence, each flash write must
*      contain at least 4 bytes (zero-padded if nescessary). The flash controller
*      issues a DMA trigger each time a new byte is desired.
*
* Parameters:
*
* @param  DMA_DESC*	pDmaChannel
*         A pointer to the DMA channel structure to be used for the transfer.
* @param  BYTE*      pSrcAddr
*         The start address in __xdata space of the data to be transferred.
* @param  WORD	      length
*         The number of bytes to be transferred.
* @param  BOOL	      generateInterrupt
*         If TRUE, the DMA channel will generate an interrupt request upon
*         completion.
*
* @return void
*
******************************************************************************/
void culDMAToFlash(DMA_DESC* pDmaChannel, BYTE __xdata* , WORD length, BOOL generateInterrupt);


/******************************************************************************
* @fn  culDmaToAes
*
* @brief
*      This function configures a DMA descriptor for transferring data to be
*      converted by the AES module. The function _culDmaFromAes(...)_ is used
*      to set up a DMA descriptor for transferring converted data from the AES
*      module.
*
* Parameters:
*
* @param  DMA_DESC*	 pDmaChannel
*         Pointer to the DMA descriptor to be used for DMA transfer of data to
*         be converted.
* @param  BYTE*	  pSrcAddr
*         Pointer to the start address of the data to be transferred to the AES
*         module. The length of the data to be converted should be a multiplum
*         of 16 bytes, as the AES module operates on blocks of 16 bytes
*         (128 bit). The data should be zero-padded at the end if nescessary, to
*         make the total byte count a multiplum of 16 bytes.
* @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 EA = TRUE; must also be included.
*
* @return void
*
******************************************************************************/
void culDmaToAes(DMA_DESC* pDmaChannel, BYTE * pSrcAddr, WORD length, BOOL generateInterrupt);


/******************************************************************************
* @fn  culDmaFromAes
*
* @brief
*      This function configures a DMA descriptor for transferring converted

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
中文字幕乱码久久午夜不卡 | 欧美一区二区在线免费播放| 亚洲欧美一区二区不卡| 91蝌蚪porny| 亚洲一区在线观看免费| 欧美区在线观看| 免费成人av在线播放| 久久亚洲欧美国产精品乐播| 国产福利91精品一区| 国产精品不卡一区| 在线视频欧美精品| 免费人成网站在线观看欧美高清| 日韩一区二区免费视频| 国产精品一二三在| 亚洲精品日韩一| 日韩一级免费观看| 粉嫩一区二区三区在线看| 亚洲日本一区二区三区| 3d成人h动漫网站入口| 国产综合色在线| 亚洲视频香蕉人妖| 91精品国产美女浴室洗澡无遮挡| 久久精品国产99| 成人免费视频在线观看| 欧美精品久久天天躁| 另类小说图片综合网| 国产精品美女久久久久av爽李琼| 欧美三级资源在线| 风流少妇一区二区| 亚洲va韩国va欧美va精品| 久久综合中文字幕| 欧美在线影院一区二区| 国精产品一区一区三区mba桃花| 亚洲色图20p| 久久这里只精品最新地址| 色屁屁一区二区| 国产制服丝袜一区| 亚洲成人激情社区| 国产精品久久毛片av大全日韩| 欧美在线啊v一区| 国产一区二区三区不卡在线观看| 亚洲风情在线资源站| 国产精品色哟哟网站| 欧美日韩综合在线免费观看| 国产精品影音先锋| 青青草91视频| 亚洲综合激情另类小说区| 国产欧美日韩综合| 日韩久久久精品| 精品视频在线看| www.亚洲色图| 国产精品一区二区你懂的| 日产国产高清一区二区三区| 一区二区三区在线播| 国产精品天干天干在线综合| 欧美大片拔萝卜| 欧美高清视频在线高清观看mv色露露十八 | 久久久不卡网国产精品一区| 欧美日韩一区二区在线观看视频| 成人精品在线视频观看| 国产黄色精品网站| 久久丁香综合五月国产三级网站| 亚州成人在线电影| 亚洲精品网站在线观看| 中文字幕免费一区| 国产日韩av一区| 国产亚洲美州欧州综合国| 欧美一区二区三区人| 欧美日韩欧美一区二区| 在线观看不卡一区| 在线精品视频免费播放| 91网站视频在线观看| 成人aa视频在线观看| 高清免费成人av| 国产91富婆露脸刺激对白| 国产一区二区影院| 久久精品国产亚洲一区二区三区 | 免费视频一区二区| 蜜桃91丨九色丨蝌蚪91桃色| 奇米综合一区二区三区精品视频| 日本午夜精品视频在线观看| 日本午夜精品视频在线观看| 蜜桃视频在线一区| 精品综合免费视频观看| 国产精一品亚洲二区在线视频| 韩国精品在线观看| 国产成人精品亚洲777人妖| 国产精品一区二区视频| 成人涩涩免费视频| 91蝌蚪porny| 欧美日韩一区二区在线观看| 日韩一级免费一区| 久久精品欧美一区二区三区麻豆| 日本一区二区三区在线观看| 18成人在线观看| 午夜在线成人av| 久久国产精品无码网站| 国产成人自拍网| 成av人片一区二区| 欧美无人高清视频在线观看| 日韩午夜激情视频| 欧美韩日一区二区三区四区| 一区二区三区资源| 日本视频中文字幕一区二区三区| 国产精品一区二区在线观看网站 | 国产亚洲精久久久久久| 日韩理论片在线| 日韩av一区二区三区四区| 老鸭窝一区二区久久精品| 国产精品99久久久久久有的能看| 94色蜜桃网一区二区三区| 欧美特级限制片免费在线观看| 日韩三级视频在线观看| ㊣最新国产の精品bt伙计久久| 亚洲小说春色综合另类电影| 极品尤物av久久免费看| 色综合av在线| 久久奇米777| 一区二区欧美视频| 国产精品一区一区| 欧美精品日韩一本| 欧美精彩视频一区二区三区| 樱桃国产成人精品视频| 国产一区二区女| 欧美性色综合网| 亚洲国产岛国毛片在线| 日韩成人一级片| 一本色道久久综合亚洲精品按摩| 日韩一区二区免费高清| 一区二区三区高清不卡| 国产不卡视频一区二区三区| 欧美精品国产精品| 亚洲人成网站精品片在线观看| 激情五月婷婷综合| 欧美片网站yy| 亚洲精品中文字幕乱码三区| 高清成人在线观看| 久久综合网色—综合色88| 偷拍一区二区三区| 91成人在线观看喷潮| 国产精品国产三级国产a| 久久精品国产亚洲a| 欧美视频三区在线播放| 中文字幕在线观看不卡| 国产剧情一区在线| 日韩免费高清电影| 日韩在线一区二区三区| 欧美在线短视频| 亚洲精品福利视频网站| 99re这里只有精品视频首页| 国产视频一区二区在线观看| 麻豆成人91精品二区三区| 欧美精品久久99久久在免费线| 洋洋av久久久久久久一区| 成人免费观看av| 国产欧美日韩综合| 国产成人高清视频| 精品国产精品网麻豆系列| 秋霞成人午夜伦在线观看| 欧美日韩免费视频| 亚洲成av人影院| 欧美色涩在线第一页| 亚洲国产裸拍裸体视频在线观看乱了| 91麻豆精东视频| 亚洲精品ww久久久久久p站| 99re视频精品| 亚洲日本成人在线观看| 色综合中文综合网| 91蜜桃在线观看| 中文字幕中文字幕中文字幕亚洲无线 | 欧美成人一区二区三区在线观看| 日韩在线一区二区| 日韩欧美精品在线视频| 久久电影网站中文字幕| 精品国产在天天线2019| 韩国三级中文字幕hd久久精品| 日韩精品一区在线| 国产在线精品一区二区| 国产午夜亚洲精品理论片色戒 | 色综合久久久久| 夜夜嗨av一区二区三区中文字幕| 91极品美女在线| 亚洲高清视频在线| 欧美一区日本一区韩国一区| 美女精品一区二区| 26uuu精品一区二区| 国产二区国产一区在线观看| 国产精品三级视频| 欧美影片第一页| 免费观看久久久4p| 久久久激情视频| 91蝌蚪porny九色| 人人爽香蕉精品| 久久夜色精品国产欧美乱极品| 高清成人免费视频| 亚洲综合在线免费观看| 日韩三级.com| 99国内精品久久| 蜜臀av一区二区在线免费观看| 久久综合给合久久狠狠狠97色69|