📄 mem1.h
字号:
** This method is internal. It is used by Processor Expert only.
** ===================================================================
*/
/* Routines for P <-> X Memory Access */
#define MEM1_memMemcpy(dest, src, count) memMemcpy(dest, src, count)
/*
** ===================================================================
** Method : MEM1_memMemcpy (bean DSP_MEM)
**
** Description :
** The memcpy routine copies characters between memory
** buffers For example see <Typical Usage > page.
** Parameters :
** NAME - DESCRIPTION
** * dest - Pointer to the destination buffet
** array
** * src - Pointer to the source buffet array
** count - Size of the source buffer array
** Returns :
** --- - *dest return value
** ===================================================================
*/
#define MEM1_memMemset(dest, c, count) memMemset(dest, c, count)
/*
** ===================================================================
** Method : MEM1_memMemset (bean DSP_MEM)
**
** Description :
** The memset function sets user specified number of bytes
** in memory to a specific character For example see
** <Typical Usage > page.
** Parameters :
** NAME - DESCRIPTION
** * dest - Pointer to the destination buffer
** array
** c - Value to fill
** count - Size of array to fill
** Returns :
** --- - *dest return value
** ===================================================================
*/
#define MEM1_memMemsetP(dest, c, count) memMemsetP(dest, c, count)
/*
** ===================================================================
** Method : MEM1_memMemsetP (bean DSP_MEM)
**
** Description :
** The memset function sets user specified number of bytes
** in 'P' memory to a specific character
** Parameters :
** NAME - DESCRIPTION
** * dest - Pointer to the destination buffer
** array in 'P' memory
** c - Value to fill
** count - Size of array to fill
** Returns :
** --- - *dest return value
** ===================================================================
*/
#define MEM1_memReadP16(pSrc) memReadP16(pSrc)
/*
** ===================================================================
** Method : MEM1_memReadP16 (bean DSP_MEM)
**
** Description :
** The function memReadP16 reads a 16-bit word from the
** program data (P data), address space. The memReadP16
** executes the specific instructions to reference program P
** data, as opposed to X data. For example see <Typical
** Usage > page.
** Parameters :
** NAME - DESCRIPTION
** * pSrc - The address in P memory from which to
** read a 16-bit word
** Returns :
** --- - Contents of program memory word (16
** bits)
** ===================================================================
*/
#define MEM1_memReadP32(pSrc) memReadP32(pSrc)
/*
** ===================================================================
** Method : MEM1_memReadP32 (bean DSP_MEM)
**
** Description :
** The function memReadP32 reads a 32-bit word from the
** program data (P data) address space. The memReadP32
** executes the specific instructions to reference program P
** data, as opposed to X data. For example see <Typical
** Usage > page.
** Parameters :
** NAME - DESCRIPTION
** * pSrc - The address in P memory from which to
** read a 32-bit (two word) value
** Returns :
** --- - Contents of two program memory words
** (32 bits)
** ===================================================================
*/
#define MEM1_memWriteP16(Data, pDest) memWriteP16(Data, pDest)
/*
** ===================================================================
** Method : MEM1_memWriteP16 (bean DSP_MEM)
**
** Description :
** The memWriteP16 function writes a 16-bit value into the
** program data, (P data), address space. The memWriteP16
** executes the specific instructions required to write to
** program (P) data, as opposed to X data. For example see
** <Typical Usage > page.
** Parameters :
** NAME - DESCRIPTION
** Data - The 16-bit data to write into P memory
** * pDest - The address to which to write the
** data in P memory
** Returns : Nothing
** ===================================================================
*/
#define MEM1_memWriteP32(Data, pDest) memWriteP32(Data, pDest)
/*
** ===================================================================
** Method : MEM1_memWriteP32 (bean DSP_MEM)
**
** Description :
** The memWriteP32 function writes a 32-bit value into the
** program data, (P data), address space. The memWriteP32
** executes specific instructions required to write to
** program P data, as opposed to X data. For example see
** <Typical Usage > page.
** Parameters :
** NAME - DESCRIPTION
** Data - The 32-bit data to write into P memory
** * pDest - The address to which to write the
** data in P memory
** Returns : Nothing
** ===================================================================
*/
#define MEM1_memCopyPtoP(pDest, pSrc, Count) memCopyPtoP(pDest, pSrc, Count)
/*
** ===================================================================
** Method : MEM1_memCopyPtoP (bean DSP_MEM)
**
** Description :
** The memCopyPtoP copies a block of data from the P
** (program) data memory to the P data memory. The
** memCopyPtoP executes the specific instructions required
** to read data from program P data memory.
** Parameters :
** NAME - DESCRIPTION
** * pDest - The destination address in P memory
** to which to copy the data
** * pSrc - The source address in P memory from
** which to copy the data
** Count - The size of the data to be copied
** Returns :
** --- - *dest return value
** ===================================================================
*/
#define MEM1_memCopyPtoX(pDest, pSrc, Count) memCopyPtoX(pDest, pSrc, Count)
/*
** ===================================================================
** Method : MEM1_memCopyPtoX (bean DSP_MEM)
**
** Description :
** The memCopyPtoX copies a block of data from the P
** (program) data memory to the X data memory. The
** memCopyPtoX executes the specific instructions required
** to read data from program P data memory, as opposed to X
** data. For example see <Typical Usage > page.
** Parameters :
** NAME - DESCRIPTION
** * pDest - The destination address in X memory
** to which to copy the data
** * pSrc - The source address in P memory from
** which to copy the data
** Count - The size of the data to be copied
** Returns :
** --- - *dest return value
** ===================================================================
*/
#define MEM1_memCopyXtoP(pDest, pSrc, Count) memCopyXtoP(pDest, pSrc, Count)
/*
** ===================================================================
** Method : MEM1_memCopyXtoP (bean DSP_MEM)
**
** Description :
** The memCopyXtoP copies a block of data from the X data
** memory to the P (program) data memory. The memCopyXtoP
** executes the specific instructions required to write data
** to program P data memory, as opposed to X data. For
** example see <Typical Usage > page.
** Parameters :
** NAME - DESCRIPTION
** * pDest - The destination address in P memory
** to which to copy the data
** * pSrc - The source address in X memory from
** which to copy the data
** Count - The size of the data to be copied
** Returns :
** --- - *dest return value
** ===================================================================
*/
void MEM1_Init(void);
/*
** ===================================================================
** Method : MEM1_Init (bean DSP_MEM)
**
** Description :
** This method initializes the driver.
** This method is internal. It is used by Processor Expert only.
** ===================================================================
*/
#define MEM1_MergeFree(pPool, pBlock, SizeNeeded) MergeFree(pPool, pBlock, SizeNeeded)
/*
** ===================================================================
** Method : MEM1_MergeFree (bean DSP_MEM)
**
** Description :
** Assumes that pBlock points to a block not in-use. Checks the
** block following to determine its state. If it is not in-use,
** merge it to the current block. pBlock will not change, but the
** size of the block to which it points may increase.
** This method is internal. It is used by Processor Expert only.
** ===================================================================
*/
#define MEM1_SplitBlock(pPool, pBlock, SizeNeeded) SplitBlock(pPool, pBlock, SizeNeeded)
/*
** ===================================================================
** Method : MEM1_SplitBlock (bean DSP_MEM)
**
** Description :
** Assumes that pBlock points to a block larger than SizeNeeded.
** If the block is large enough to contain SizeNeeded plus
** another block, the block is split. The area returned to the
** user is the user portion of the first block.The remainder in
** its entirety will be set to describe a not-in-use block.
** This method is internal. It is used by Processor Expert only.
** ===================================================================
*/
#define MEM1_SplitBlockRev(pPool, pBlock, SizeNeeded) SplitBlockRev(pPool, pBlock, SizeNeeded)
/*
** ===================================================================
** Method : MEM1_SplitBlockRev (bean DSP_MEM)
**
** Description :
** Assumes that pBlock points to a block larger than SizeNeeded.
** If the block is large enough to contain SizeNeeded plus
** another block, the block is split. The area returned is the
** portion of the end of the block. The remainder in its entirety
** will be set to describe a not-in-use block.
** This method is internal. It is used by Processor Expert only.
** ===================================================================
*/
/* END MEM1. */
#endif /* ifndef __MEM1 */
/*
** ###################################################################
**
** This file was created by UNIS Processor Expert 2.97 [03.74]
** for the Freescale 56800 series of microcontrollers.
**
** ###################################################################
*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -