📄 pc_m1.h
字号:
Int8 ch; /* trgVarSize == 1 */
UWord16 uw; /* trgVarSize == 2 */
UWord32 ud; /* trgVarSize == 2 */
Word16 sw; /* trgVarSize == 4 */
Word32 sd; /* trgVarSize == 4 */
} trgThreshold; /* trigger threshold */
UWord16 varCnt; /* number of variables */
struct{
UWord16 varSize; /* size of variable */
UWord32 varAddr[1]; /* address of variable */
} varDef[8];
UWord16 recPos; /* position in recorder buffer - position of the next samples (incremented with RecSetLen) */
UWord16 recSetLen; /* length of required set of variables (in words) */
UWord16 recToEnd; /* position to end of buff (the variable is decremented after trigger & recorder stops at 0) */
UWord16 recTime; /* time div of Recorder */
/* recorder last value (last value the triggering variable is stored after launch of Recorder routine) */
union{
UInt8 uch;
Int8 ch;
UWord16 uw;
UWord32 ud;
Word16 sw;
Word32 sd;
} recLastVal; /* last value of synchronizing variable */
} pcmdrv_sRecorder;
/*------------------------------------------------------------------------------------------------------*/
/* scope settings buffer (scope settings are stored in this structure) */
/*------------------------------------------------------------------------------------------------------*/
typedef struct{
unsigned char varCnt;
struct{
UInt8 varSize; /* size of scope variable */
UInt8 addrByte[4]; /* address of scope variable */
} varDef[8]; /* maximum number of variables is 8 */
} pcmdrv_sScope;
#define pcmasterdrvInit(sPCMasterComm) PC_M1_pcmasterdrvInit(sPCMasterComm)
Word16 PC_M1_pcmasterdrvInit(sPCMasterComm *p_sPCMasterComm);
/*
** ===================================================================
** Method : PC_M1_pcmasterdrvInit (bean PC_Master)
**
** Description :
** Initialization of PC Master Communication Algorithm. This
** function must be called first, before start of
** communication.
** Parameters :
** NAME - DESCRIPTION
** * p_sPCMasterComm - Pointer to
** structure with SCI communication
** settings.
** Returns :
** --- - The function returns the PASS (0).
** ===================================================================
*/
#define pcmasterdrvGetAppCmdSts(sPCMasterComm) PC_M1_pcmasterdrvGetAppCmdSts(sPCMasterComm)
UWord16 PC_M1_pcmasterdrvGetAppCmdSts(void);
/*
** ===================================================================
** Method : PC_M1_pcmasterdrvGetAppCmdSts (bean PC_Master)
**
** Description :
** Get Application Command Status. This function is used to
** check if an application command has been received from PC.
** Parameters : None
** Returns :
** --- - Return value:
** 1 - new application command received
** 0 - no new application command.
** ===================================================================
*/
#define pcmasterdrvWriteAppCmdSts(sPCMasterComm) PC_M1_pcmasterdrvWriteAppCmdSts(sPCMasterComm)
Word16 PC_M1_pcmasterdrvWriteAppCmdSts(UWord16 state);
/*
** ===================================================================
** Method : PC_M1_pcmasterdrvWriteAppCmdSts (bean PC_Master)
**
** Description :
** Write Application Command Status. This function clears
** the flags in application command status word.
** Parameters :
** NAME - DESCRIPTION
** state - Application command status word.
** Returns :
** --- - The function returns the PASS (0).
** ===================================================================
*/
#define pcmasterdrvIsr(sPCMasterComm) PC_M1_pcmasterdrvIsr(sPCMasterComm)
void PC_M1_pcmasterdrvIsr(void);
/*
** ===================================================================
** Method : PC_M1_pcmasterdrvIsr (bean PC_Master)
**
** Description :
** Main PC Master Communication routine which provide
** receiving, decoding of incoming message and sending
** response to PC.
** Parameters : None
** Returns : Nothing
** ===================================================================
*/
#define pcmasterdrvRecorder(sPCMasterComm) PC_M1_pcmasterdrvRecorder(sPCMasterComm)
void PC_M1_pcmasterdrvRecorder(void);
/*
** ===================================================================
** Method : PC_M1_pcmasterdrvRecorder (bean PC_Master)
**
** Description :
** Recorder Routine. It performs sampling of data into
** buffer which is located on the address p_recBuff item is
** pointing and its length is determined by recSize item in
** the initialization structure of sPCMasterComm type.
** Parameters : None
** Returns : Nothing
** ===================================================================
*/
void Inhr1_OnError(void);
void Inhr1_OnRxChar(void);
void Inhr1_OnTxChar(void);
void PC_M1_PE_Init(void);
/*
** ===================================================================
** Method : PC_M1_PE_Init (bean PC_Master)
**
** Description :
** This method is internal. It is used by Processor Expert only.
** ===================================================================
*/
sPCMasterComm * PC_M1_getPCMasterComm(void);
/*
** ===================================================================
** Method : PC_M1_getPCMasterComm (bean PC_Master)
**
** Description :
** This method returns the pointer to the sPCMasterComm
** structure.
** Parameters : None
** Returns :
** --- - PCMaster communication structure.
** ===================================================================
*/
/* END PC_M1. */
#endif /* ifndef __PC_M1 */
/*
** ###################################################################
**
** This file was created by UNIS Processor Expert 2.97 [03.74]
** for the Freescale 56800 series of microcontrollers.
**
** ###################################################################
*/
#define DSP_INCLUDE_PCMASTER
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -