Kinetis SDK v.1.2 Demo Applications User's Guide  Rev. 0
Freescale Semiconductor, Inc.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
freemaster_Kxx.c File Reference

FreeMASTER Driver Kxx-hardware dependent stuff. More...

#include "freemaster.h"
#include "freemaster_private.h"
#include "freemaster_Kxx.h"

Functions

void FMSTR_Isr (void)
 
void FMSTR_CopyMemory (FMSTR_ADDR nDestAddr, FMSTR_ADDR nSrcAddr, FMSTR_SIZE8 nSize)
 The "memcpy" used internally in FreeMASTER driver. More...
 
FMSTR_BPTR FMSTR_CopyToBuffer (FMSTR_BPTR pDestBuff, FMSTR_ADDR nSrcAddr, FMSTR_SIZE8 nSize)
 Write-into the communication buffer memory. More...
 
FMSTR_BPTR FMSTR_CopyFromBuffer (FMSTR_ADDR nDestAddr, FMSTR_BPTR pSrcBuff, FMSTR_SIZE8 nSize)
 Read-out memory from communication buffer. More...
 
void FMSTR_CopyFromBufferWithMask (FMSTR_ADDR nDestAddr, FMSTR_BPTR pSrcBuff, FMSTR_SIZE8 nSize)
 Read-out memory from communication buffer, perform AND-masking. More...
 

Detailed Description

Version
1.0.3.0
Date
Aug-4-2011

Function Documentation

FMSTR_BPTR FMSTR_CopyFromBuffer ( FMSTR_ADDR  nDestAddr,
FMSTR_BPTR  pSrcBuff,
FMSTR_SIZE8  nSize 
)
Parameters
nDestAddr- destination memory address
pSrcBuff- pointer to source memory in communication buffer
nSize- buffer size (always in bytes)
Returns
This function returns a pointer to next byte in comm. buffer
void FMSTR_CopyFromBufferWithMask ( FMSTR_ADDR  nDestAddr,
FMSTR_BPTR  pSrcBuff,
FMSTR_SIZE8  nSize 
)
Parameters
nDestAddr- destination memory address
pSrcBuff- source memory in communication buffer, mask follows data
nSize- buffer size (always in bytes)
void FMSTR_CopyMemory ( FMSTR_ADDR  nDestAddr,
FMSTR_ADDR  nSrcAddr,
FMSTR_SIZE8  nSize 
)
Parameters
nDestAddr- destination memory address
nSrcAddr- source memory address
nSize- memory size (always in bytes)
FMSTR_BPTR FMSTR_CopyToBuffer ( FMSTR_BPTR  pDestBuff,
FMSTR_ADDR  nSrcAddr,
FMSTR_SIZE8  nSize 
)
Parameters
pDestBuff- pointer to destination memory in communication buffer
nSrcAddr- source memory address
nSize- buffer size (always in bytes)
Returns
This function returns a pointer to next byte in comm. buffer
void FMSTR_Isr ( void  )