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

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

?? cul.h

?? reference about wireless design which is helpful to everyone
?? H
?? 第 1 頁 / 共 3 頁
字號:
/******************************************************************************
*                                                                             *
*        **********                                                           *
*       ************                                                          *
*      ***        ***                                                         *
*     ***    ++    ***                                                        *
*     ***   +  +   ***                      CHIPCON                           *
*     ***   +                                                                 *
*     ***   +  +   ***                                                        *
*     ***    ++    ***                                                        *
*      ***        ***                                                         *
*       ************                                                          *
*        **********                                                           *
*                                                                             *
*******************************************************************************

Filename:     cul.h
Target:       cc2510
Author:       EFU/ KJA
Revised:      20/6-2006
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

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品国产一区二区国模嫣然| 亚洲国产va精品久久久不卡综合| 国产精品久久久久久久久搜平片| 一区二区三区四区不卡视频| 国精产品一区一区三区mba桃花| 在线免费观看日本欧美| 久久久久亚洲蜜桃| 日韩电影在线免费| aaa欧美大片| 国产免费成人在线视频| 日本午夜精品一区二区三区电影| 一本色道久久加勒比精品| 久久久久亚洲蜜桃| 美女视频黄久久| 欧美自拍丝袜亚洲| 亚洲色图清纯唯美| 国产成人午夜视频| 久久久久国产精品厨房| 激情五月婷婷综合| 精品国产一区二区亚洲人成毛片| 午夜精品一区二区三区免费视频 | 午夜伊人狠狠久久| 色菇凉天天综合网| 亚洲男女一区二区三区| 成人深夜福利app| 国产日韩亚洲欧美综合| 国产伦理精品不卡| 久久奇米777| 国产精品主播直播| 久久久91精品国产一区二区三区| 国产一区不卡精品| 久久久一区二区| 国产91丝袜在线18| 国产精品国产三级国产专播品爱网 | 日韩 欧美一区二区三区| 欧美日韩精品一区二区| 亚洲成人在线网站| 宅男噜噜噜66一区二区66| 天堂蜜桃91精品| 日韩欧美中文字幕制服| 九九九精品视频| 国产亚洲欧美中文| 色综合一区二区三区| 樱花影视一区二区| 91精品欧美久久久久久动漫| 日韩av二区在线播放| 久久综合九色综合欧美就去吻 | 日韩av一区二区在线影视| 91精品国产欧美一区二区成人 | 日本中文字幕一区| 精品欧美乱码久久久久久1区2区| 国产一二三精品| 17c精品麻豆一区二区免费| 91蝌蚪porny| 性做久久久久久免费观看欧美| 欧美一个色资源| 成人激情开心网| 丝袜美腿亚洲色图| 久久久av毛片精品| 91亚洲国产成人精品一区二三| 亚洲成人免费在线| 久久先锋影音av鲁色资源网| 99精品久久只有精品| 日本亚洲免费观看| 国产精品丝袜一区| 91精品综合久久久久久| 国产一区二区精品久久99| 亚洲精品视频免费看| 日韩视频免费观看高清完整版 | 国产麻豆视频一区| 一区二区三区在线播放| 精品美女一区二区三区| 99热这里都是精品| 久久成人18免费观看| 亚洲婷婷综合色高清在线| 日韩欧美国产精品| 一本久道久久综合中文字幕| 精久久久久久久久久久| 亚洲一区二区精品视频| 国产欧美精品国产国产专区| 欧美日韩免费不卡视频一区二区三区| 国产一区二区剧情av在线| 天天综合网天天综合色 | 久久精品夜色噜噜亚洲aⅴ| 在线免费不卡视频| 成人国产精品免费观看动漫| 另类人妖一区二区av| 亚洲综合激情网| 国产精品久久久久久久裸模| 精品福利av导航| 欧美精品在欧美一区二区少妇| 91麻豆123| av电影一区二区| 成人综合日日夜夜| 国产美女av一区二区三区| 日产欧产美韩系列久久99| 一区二区成人在线视频| 最新国产成人在线观看| 国产精品私人自拍| 中文字幕第一区二区| 国产亚洲一区二区三区四区 | 欧美日韩国产区一| 欧美性大战久久| 一本久久综合亚洲鲁鲁五月天| 99久久精品免费看国产免费软件| 国产一区二区看久久| 国产一区二区免费看| 国产麻豆精品theporn| 激情综合亚洲精品| 久久99国产精品免费| 精品一区二区在线视频| 精品伊人久久久久7777人| 久久99精品国产.久久久久久| 久久精品国产**网站演员| 久久激五月天综合精品| 激情文学综合网| 国产精品91xxx| 成人免费视频一区| 成人高清免费在线播放| 91视频在线观看免费| 99re66热这里只有精品3直播 | 欧美一区二区三区免费视频 | 欧美人与禽zozo性伦| 欧美一三区三区四区免费在线看| 91精品欧美综合在线观看最新| 91精品国产色综合久久ai换脸| 日韩一区二区麻豆国产| 日韩欧美高清一区| 国产欧美精品在线观看| 亚洲视频在线一区| 午夜免费久久看| 国内精品嫩模私拍在线| 成人av在线资源网站| 91久久免费观看| 欧美一区二区三区视频免费| 久久综合五月天婷婷伊人| 国产精品国产三级国产aⅴ中文| 亚洲日本va午夜在线影院| 亚洲午夜一区二区| 国产专区欧美精品| 91在线播放网址| 欧美一级精品大片| 国产免费观看久久| 一区二区三区在线视频观看58| 日本特黄久久久高潮| 成人一级片网址| 欧美日韩成人综合| 久久精品一区二区三区不卡牛牛| 亚洲老妇xxxxxx| 国产一区二区不卡老阿姨| 色天使色偷偷av一区二区| 日韩免费高清av| 一区二区三区高清| 国产精品69久久久久水密桃| 欧美主播一区二区三区美女| 精品久久国产老人久久综合| 亚洲精品老司机| 韩国精品主播一区二区在线观看 | 成人免费福利片| 欧美精品久久99| 久久精品免费在线观看| 五月婷婷综合激情| 99re免费视频精品全部| 精品美女被调教视频大全网站| 一区二区三区四区在线免费观看| 久久精品理论片| 欧美私人免费视频| 中文字幕成人在线观看| 久久99精品国产麻豆不卡| 欧美日韩一二三区| 亚洲色图都市小说| 国产精品一区二区你懂的| 56国语精品自产拍在线观看| 亚洲精品中文字幕乱码三区| 国产伦精品一区二区三区视频青涩| 欧美丝袜第三区| 亚洲人成7777| 成人18视频在线播放| 欧美精品一区二区三区蜜桃| 日韩精品免费专区| 天堂va蜜桃一区二区三区| 国产一区二区三区免费看| 欧美一区二区三区四区久久| 午夜精品一区二区三区电影天堂| 91在线丨porny丨国产| 国产色一区二区| 国产精品一二一区| 日韩一级片在线观看| 日韩av中文字幕一区二区| 欧美午夜一区二区三区免费大片| 18欧美亚洲精品| 99精品在线观看视频| 国产精品无码永久免费888| 高清国产午夜精品久久久久久| 久久久不卡影院| 国产精品123| 国产丝袜在线精品| 国产成人av资源| 最新久久zyz资源站| 99精品热视频|