![]() |
Kinetis SDK v.1.2 Demo Applications User's Guide
Rev. 0
Freescale Semiconductor, Inc.
|
FreeMASTER Driver main API header file, Kxx(40/60) platform. More...
Go to the source code of this file.
Macros | |
#define | FMSTR_PLATFORM_KXX |
#define | FMSTR_APPCMDRESULT_NOCMD |
#define | FMSTR_APPCMDRESULT_RUNNING |
#define | MFSTR_APPCMDRESULT_LASTVALID |
#define | FMSTR_REC_BASE_SECONDS(x) |
#define | FMSTR_REC_BASE_MILLISEC(x) |
#define | FMSTR_REC_BASE_MICROSEC(x) |
#define | FMSTR_REC_BASE_NANOSEC(x) |
Typedefs | |
typedef unsigned char * | FMSTR_ADDR |
typedef unsigned short | FMSTR_SIZE |
typedef unsigned char | FMSTR_BOOL |
typedef unsigned char | FMSTR_APPCMD_CODE |
typedef unsigned char | FMSTR_APPCMD_DATA |
typedef unsigned char * | FMSTR_APPCMD_PDATA |
typedef unsigned char | FMSTR_APPCMD_RESULT |
typedef FMSTR_APPCMD_RESULT(* | FMSTR_PAPPCMDFUNC )(FMSTR_APPCMD_CODE, FMSTR_APPCMD_PDATA, FMSTR_SIZE) |
Functions | |
FMSTR_BOOL | FMSTR_Init (void) |
FreeMASTER driver initialization. More... | |
void | FMSTR_Poll (void) |
void | FMSTR_Isr (void) |
void | FMSTR_Isr2 (void) |
void | FMSTR_Recorder (void) |
void | FMSTR_TriggerRec (void) |
void | FMSTR_SetUpRecBuff (FMSTR_ADDR nBuffAddr, FMSTR_SIZE nBuffSize) |
FMSTR_APPCMD_CODE | FMSTR_GetAppCmd (void) |
FMSTR_APPCMD_PDATA | FMSTR_GetAppCmdData (FMSTR_SIZE *pDataLen) |
FMSTR_BOOL | FMSTR_RegisterAppCmdCall (FMSTR_APPCMD_CODE nAppCmdCode, FMSTR_PAPPCMDFUNC pCallbackFunc) |
void | FMSTR_AppCmdAck (FMSTR_APPCMD_RESULT nResultCode) |
void | FMSTR_AppCmdSetResponseData (FMSTR_ADDR nResultDataAddr, FMSTR_SIZE nResultDataLen) |
This is the only header file needed to be included by the user application to implement the FreeMASTER interface. In addition, user has to write her "freemaster_cfg.h" configuration file and put it anywhere on the #include path
#define FMSTR_APPCMDRESULT_NOCMD |
#define FMSTR_APPCMDRESULT_RUNNING |
#define FMSTR_PLATFORM_KXX |
#define FMSTR_REC_BASE_MICROSEC | ( | x | ) |
#define FMSTR_REC_BASE_MILLISEC | ( | x | ) |
#define FMSTR_REC_BASE_NANOSEC | ( | x | ) |
#define FMSTR_REC_BASE_SECONDS | ( | x | ) |
#define MFSTR_APPCMDRESULT_LASTVALID |
typedef unsigned char* FMSTR_ADDR |
typedef unsigned char FMSTR_APPCMD_CODE |
typedef unsigned char FMSTR_APPCMD_DATA |
typedef unsigned char * FMSTR_APPCMD_PDATA |
typedef unsigned char FMSTR_APPCMD_RESULT |
typedef unsigned char FMSTR_BOOL |
typedef FMSTR_APPCMD_RESULT(* FMSTR_PAPPCMDFUNC)(FMSTR_APPCMD_CODE, FMSTR_APPCMD_PDATA, FMSTR_SIZE) |
typedef unsigned short FMSTR_SIZE |
void FMSTR_AppCmdAck | ( | FMSTR_APPCMD_RESULT | nResultCode | ) |
void FMSTR_AppCmdSetResponseData | ( | FMSTR_ADDR | nResultDataAddr, |
FMSTR_SIZE | nResultDataLen | ||
) |
FMSTR_APPCMD_CODE FMSTR_GetAppCmd | ( | void | ) |
FMSTR_APPCMD_PDATA FMSTR_GetAppCmdData | ( | FMSTR_SIZE * | pDataLen | ) |
FMSTR_BOOL FMSTR_Init | ( | void | ) |
void FMSTR_Isr | ( | void | ) |
void FMSTR_Isr2 | ( | void | ) |
void FMSTR_Poll | ( | void | ) |
void FMSTR_Recorder | ( | void | ) |
FMSTR_BOOL FMSTR_RegisterAppCmdCall | ( | FMSTR_APPCMD_CODE | nAppCmdCode, |
FMSTR_PAPPCMDFUNC | pCallbackFunc | ||
) |
void FMSTR_SetUpRecBuff | ( | FMSTR_ADDR | nBuffAddr, |
FMSTR_SIZE | nBuffSize | ||
) |
void FMSTR_TriggerRec | ( | void | ) |