19 #ifndef __FREEMASTER_PRIVATE_H
20 #define __FREEMASTER_PRIVATE_H
22 #ifndef __FREEMASTER_H
23 #error Please include the freemaster.h master header file before the freemaster_private.h
45 #if defined(FMSTR_PLATFORM_56F8xx)
46 #if FMSTR_PLATFORM_56F8xx
47 #include "freemaster_56F8xx.h"
48 #define FMSTR_PLATFORM 56F8xx
50 #undef FMSTR_PLATFORM_56F8xx
54 #if defined(FMSTR_PLATFORM_56F8xxx)
55 #if FMSTR_PLATFORM_56F8xxx
56 #include "freemaster_56F8xxx.h"
57 #define FMSTR_PLATFORM 56F8xxx
59 #undef FMSTR_PLATFORM_56F8xxx
63 #if defined(FMSTR_PLATFORM_HC12)
64 #if FMSTR_PLATFORM_HC12
65 #include "freemaster_HC12.h"
66 #define FMSTR_PLATFORM HC12
68 #undef FMSTR_PLATFORM_HC12
72 #if defined(FMSTR_PLATFORM_HC08)
73 #if FMSTR_PLATFORM_HC08
74 #include "freemaster_HC08.h"
75 #define FMSTR_PLATFORM HC08
77 #undef FMSTR_PLATFORM_HC08
81 #if defined(FMSTR_PLATFORM_MPC55xx)
82 #if FMSTR_PLATFORM_MPC55xx
83 #include "freemaster_MPC55xx.h"
84 #define FMSTR_PLATFORM MPC55xx
86 #undef FMSTR_PLATFORM_MPC55xx
90 #if defined(FMSTR_PLATFORM_MPC5xx)
91 #if FMSTR_PLATFORM_MPC5xx
92 #include "freemaster_MPC5xx.h"
93 #define FMSTR_PLATFORM MPC5xx
95 #undef FMSTR_PLATFORM_MPC5xx
99 #if defined(FMSTR_PLATFORM_MCF51xx)
100 #if FMSTR_PLATFORM_MCF51xx
101 #include "freemaster_MCF51xx.h"
102 #define FMSTR_PLATFORM MCF51xx
104 #undef FMSTR_PLATFORM_MCF51xx
108 #if defined(FMSTR_PLATFORM_MCF52xx)
109 #if FMSTR_PLATFORM_MCF52xx
110 #include "freemaster_MCF52xx.h"
111 #define FMSTR_PLATFORM MCF52xx
113 #undef FMSTR_PLATFORM_MCF52xx
117 #if defined(FMSTR_PLATFORM_MPC56xx)
118 #if FMSTR_PLATFORM_MPC56xx
119 #include "freemaster_MPC56xx.h"
120 #define FMSTR_PLATFORM MPC56xx
122 #undef FMSTR_PLATFORM_MPC56xx
126 #if defined(FMSTR_PLATFORM_MQX)
127 #if FMSTR_PLATFORM_MQX
128 #include "freemaster_MQX.h"
129 #define FMSTR_PLATFORM MQX
131 #undef FMSTR_PLATFORM_MQX
135 #if defined(FMSTR_PLATFORM_KXX)
136 #if FMSTR_PLATFORM_KXX
138 #define FMSTR_PLATFORM KXX
140 #undef FMSTR_PLATFORM_KXX
144 #ifndef FMSTR_PLATFORM
145 #error Unknown FreeMASTER driver platform
153 #define NULL ((void *) 0)
161 #define FMSTR_TRUE (1U)
165 #define FMSTR_FALSE (0U)
172 #ifdef FMSTR_CAN_EXTID
173 #if FMSTR_CAN_EXTID != 0x80000000U
174 #error FMSTR_CAN_EXTID must be defined as 0x80000000
175 #undef FMSTR_CAN_EXTID
179 #ifndef FMSTR_CAN_EXTID
180 #define FMSTR_CAN_EXTID 0x80000000U
190 #define FMSTR_INLINE static
194 #define FMSTR_MACROCODE_BEGIN() do{
195 #define FMSTR_MACROCODE_END() }while(0)
261 #define FMSTR_UNUSED(sym)
263 #define FMSTR_UNUSED(sym) ((sym),0)
271 #if !defined(FMSTR_POLL_DRIVEN) && !defined(FMSTR_LONG_INTR) && !defined(FMSTR_SHORT_INTR)
272 #define FMSTR_LONG_INTR 0
273 #define FMSTR_SHORT_INTR 0
274 #define FMSTR_POLL_DRIVEN 1
278 #ifndef FMSTR_POLL_DRIVEN
279 #define FMSTR_POLL_DRIVEN 0
281 #ifndef FMSTR_LONG_INTR
282 #define FMSTR_LONG_INTR 0
284 #ifndef FMSTR_SHORT_INTR
285 #define FMSTR_SHORT_INTR 0
288 #if (FMSTR_LONG_INTR && (FMSTR_SHORT_INTR || FMSTR_POLL_DRIVEN)) || \
289 (FMSTR_SHORT_INTR && (FMSTR_LONG_INTR || FMSTR_POLL_DRIVEN)) || \
290 (FMSTR_POLL_DRIVEN && (FMSTR_LONG_INTR || FMSTR_SHORT_INTR)) || \
291 !(FMSTR_POLL_DRIVEN || FMSTR_LONG_INTR || FMSTR_SHORT_INTR)
293 #error You have to enable exctly one of FMSTR_LONG_INTR or FMSTR_SHORT_INTR or FMSTR_POLL_DRIVEN
298 #ifndef FMSTR_COMM_RQUEUE_SIZE
299 #define FMSTR_COMM_RQUEUE_SIZE 32
302 #if !FMSTR_COMM_RQUEUE_SIZE
303 #undef FMSTR_COMM_RQUEUE_SIZE
304 #define FMSTR_COMM_RQUEUE_SIZE 32
307 #if FMSTR_COMM_RQUEUE_SIZE < 1
308 #error Error in FMSTR_COMM_RQUEUE_SIZE value.
314 #ifndef FMSTR_USE_JTAG
315 #define FMSTR_USE_JTAG 0
318 #ifndef FMSTR_USE_MSCAN
319 #define FMSTR_USE_MSCAN 0
322 #ifndef FMSTR_USE_FLEXCAN
323 #define FMSTR_USE_FLEXCAN 0
326 #ifndef FMSTR_USE_CAN
327 #if ((FMSTR_USE_MSCAN) || (FMSTR_USE_FLEXCAN))
328 #define FMSTR_USE_CAN 1
330 #define FMSTR_USE_CAN 0
334 #ifndef FMSTR_USE_MQX_IO
335 #define FMSTR_USE_MQX_IO 0
339 #ifndef FMSTR_USE_SCI
340 #if defined(FMSTR_SCI_BASE) && !FMSTR_USE_JTAG && !FMSTR_USE_CAN && !FMSTR_USE_MQX_IO
341 #define FMSTR_USE_SCI 1
343 #define FMSTR_USE_SCI 0
348 #if ((((FMSTR_USE_SCI)?1:0) + ((FMSTR_USE_JTAG)?1:0) + ((FMSTR_USE_CAN)?1:0)) > 1)
349 #error More than one communication interface selected for FreeMASTER driver
355 #ifndef FMSTR_SCI_BASE
356 #error FMSTR_SCI_BASE must be defined when using SCI interface
359 #ifndef FMSTR_SCI_HAS_TXQUEUE
360 #define FMSTR_SCI_HAS_TXQUEUE 0
363 #ifndef FMSTR_SCI_TE_RE
364 #define FMSTR_SCI_TE_RE() do {FMSTR_SCI_TE(); FMSTR_SCI_RE();} while(0)
373 #if (!defined(FMSTR_CANHW_MSCAN)) && FMSTR_USE_MSCAN
374 #warning MSCAN support not yet fully tested on this platform
378 #if (!defined(FMSTR_CANHW_FLEXCAN)) && FMSTR_USE_FLEXCAN
379 #warning FlexCAN support not yet fully tested on this platform
383 #ifndef FMSTR_CAN_BASE
384 #error FMSTR_CAN_BASE must be defined when is using CAN interface
388 #if (FMSTR_USE_MSCAN) && (FMSTR_USE_FLEXCAN)
389 #error Can not configure FreeMASTER to use both MSCAN and FlexCAN
393 #if !(FMSTR_USE_MSCAN) && !(FMSTR_USE_FLEXCAN)
394 #error Please select if MSCAN or FlexCAN will be used
398 #if FMSTR_USE_FLEXCAN
400 #ifndef FMSTR_FLEXCAN_TXMB
402 #warning FlexCAN Message Buffer 0 is used for transmit messages
403 #define FMSTR_FLEXCAN_TXMB 0
406 #ifndef FMSTR_FLEXCAN_RXMB
408 #warning FlexCAN Message Buffer 1 is used for receive messages
409 #define FMSTR_FLEXCAN_RXMB 1
412 #if FMSTR_FLEXCAN_TXMB == FMSTR_FLEXCAN_RXMB
413 #warning FCAN RX and FCAN TX are using same Message Buffer. FreeMASTER CAN driver doesnt support this configuration. Please change number of Message Buffer in FMSTR_FLEXCAN_TXMB or FMSTR_FLEXCAN_RXMB macros.
419 #ifndef FMSTR_CAN_CMDID
420 #define FMSTR_CAN_CMDID 0x7aa
424 #ifndef FMSTR_CAN_CMDID_DYNAMIC
425 #define FMSTR_CAN_CMDID_DYNAMIC 0
429 #ifndef FMSTR_CAN_RESPID
430 #define FMSTR_CAN_RESPID 0x7aa
434 #ifndef FMSTR_CAN_RESPID_DYNAMIC
435 #define FMSTR_CAN_RESPID_DYNAMIC 0
444 #ifndef FMSTR_MQX_IO_CHANNEL
445 #warning MQX IO Channel is not defined by FMSTR_MQX_IO_CHANNEL macro, FreeMASTER use "ttya:" IO Channel
446 #define FMSTR_MQX_IO_CHANNEL "ttya:"
450 #ifndef FMSTR_MQX_IO_BLOCKING
451 #warning FMSTR_MQX_IO_BLOCKING macro is not defined, the MQX IO Channel will be open in non blocking mode
452 #define FMSTR_MQX_IO_BLOCKING 0
456 #if FMSTR_MQX_IO_BLOCKING
457 #define FMSTR_MQX_IO_PARAMETER 0
459 #define FMSTR_MQX_IO_PARAMETER IO_SERIAL_NON_BLOCKING
464 #warning MQX target driver doesn't supports the Long Interrupt routines
465 #elif FMSTR_SHORT_INTR
466 #warning MQX target driver doesn't supports the normal Short Interrupt routines, please open your MQX communication interface in Interrupt mode
472 #if FMSTR_PLATFORM_MQX
474 #error MQX target driver doesn't supports the SCI module as communication interface
476 #error MQX target driver doesn't supports the CAN module as communication interface
478 #error MQX target driver doesn't supports the JTAG module as communication interface
483 #ifndef FMSTR_USE_READMEM
484 #define FMSTR_USE_READMEM 1
486 #ifndef FMSTR_USE_WRITEMEM
487 #define FMSTR_USE_WRITEMEM 1
489 #ifndef FMSTR_USE_WRITEMEMMASK
490 #define FMSTR_USE_WRITEMEMMASK 1
494 #ifndef FMSTR_USE_READVAR
495 #define FMSTR_USE_READVAR 0
497 #ifndef FMSTR_USE_WRITEVAR
498 #define FMSTR_USE_WRITEVAR 0
500 #ifndef FMSTR_USE_WRITEVARMASK
501 #define FMSTR_USE_WRITEVARMASK 0
505 #ifndef FMSTR_USE_SCOPE
506 #define FMSTR_USE_SCOPE 0
509 #ifndef FMSTR_MAX_SCOPE_VARS
510 #define FMSTR_MAX_SCOPE_VARS 8
515 #if FMSTR_MAX_SCOPE_VARS > 8 || FMSTR_MAX_SCOPE_VARS < 2
516 #error Error in FMSTR_MAX_SCOPE_VARS value. Use a value in range 2..8
521 #ifndef FMSTR_USE_RECORDER
522 #define FMSTR_USE_RECORDER 0
525 #ifndef FMSTR_MAX_REC_VARS
526 #define FMSTR_MAX_REC_VARS 8
529 #ifndef FMSTR_REC_FARBUFF
530 #define FMSTR_REC_FARBUFF 0
533 #ifndef FMSTR_REC_OWNBUFF
534 #define FMSTR_REC_OWNBUFF 0
537 #ifndef FMSTR_USE_FASTREC
538 #define FMSTR_USE_FASTREC 0
542 #ifndef FMSTR_LIGHT_VERSION
543 #define FMSTR_LIGHT_VERSION 0
547 #ifndef FMSTR_REC_COMMON_ERR_CODES
548 #define FMSTR_REC_COMMON_ERR_CODES FMSTR_LIGHT_VERSION
552 #ifndef FMSTR_SCI_TWOWIRE_ONLY
553 #define FMSTR_SCI_TWOWIRE_ONLY FMSTR_LIGHT_VERSION
557 #ifndef FMSTR_REC_STATIC_POSTTRIG
558 #define FMSTR_REC_STATIC_POSTTRIG 0
562 #ifndef FMSTR_REC_STATIC_DIVISOR
563 #define FMSTR_REC_STATIC_DIVISOR 0
567 #if FMSTR_USE_RECORDER || FMSTR_USE_FASTREC
568 #if FMSTR_MAX_REC_VARS > 8 || FMSTR_MAX_REC_VARS < 2
569 #error Error in FMSTR_MAX_REC_VARS value. Use a value in range 2..8
573 #ifndef FMSTR_REC_TIMEBASE
574 #define FMSTR_REC_TIMEBASE 0
578 #ifndef FMSTR_REC_BUFF_SIZE
579 #define FMSTR_REC_BUFF_SIZE 256
582 #if !FMSTR_USE_READMEM
583 #error Recorder needs the FMSTR_USE_READMEM feature
588 #if FMSTR_USE_FASTREC
589 #if FMSTR_REC_OWNBUFF
590 #error Fast recorder requires its own buffer allocation
595 #ifndef FMSTR_USE_APPCMD
596 #define FMSTR_USE_APPCMD 0
599 #ifndef FMSTR_APPCMD_BUFF_SIZE
600 #define FMSTR_APPCMD_BUFF_SIZE 16
603 #ifndef FMSTR_MAX_APPCMD_CALLS
604 #define FMSTR_MAX_APPCMD_CALLS 0
608 #ifndef FMSTR_USE_TSA
609 #define FMSTR_USE_TSA 0
612 #ifndef FMSTR_USE_TSA_SAFETY
613 #define FMSTR_USE_TSA_SAFETY 0
617 #if !FMSTR_USE_READMEM
618 #error TSA needs the FMSTR_USE_READMEM feature
623 #ifndef FMSTR_USE_SFIO
624 #define FMSTR_USE_SFIO 0
634 #ifndef SFIO_MAX_INPUT_DATA_LENGTH
635 #error SFIO_MAX_INPUT_DATA_LENGTH was not defined in sfio_cfg.h
637 #ifndef SFIO_MAX_OUTPUT_DATA_LENGTH
638 #error SFIO_MAX_OUTPUT_DATA_LENGTH was not defined in sfio_cfg.h
644 #ifndef FMSTR_USE_PIPES
645 #define FMSTR_USE_PIPES 0
649 #ifndef FMSTR_USE_PIPE_PRINTF
650 #define FMSTR_USE_PIPE_PRINTF 1
654 #ifndef FMSTR_USE_PIPE_PRINTF_VARG
655 #define FMSTR_USE_PIPE_PRINTF_VARG FMSTR_USE_PIPE_PRINTF
660 #ifdef FMSTR_PIPES_EXPERIMENTAL
661 #warning The "pipes" feature is now in experimental code phase. Not yet tested on this platform.
665 #ifndef FMSTR_MAX_PIPES_COUNT
666 #define FMSTR_MAX_PIPES_COUNT 1
670 #if !(FMSTR_USE_PIPE_PRINTF) && (FMSTR_USE_PIPE_PRINTF_VARG)
671 #error You must enable pipe printf for vararg printf (see FMSTR_USE_PIPE_PRINTF)
675 #ifndef FMSTR_PIPES_PRINTF_BUFF_SIZE
676 #define FMSTR_PIPES_PRINTF_BUFF_SIZE 48
680 #if FMSTR_MAX_PIPES_COUNT < 1
681 #warning No sense to allocate zero-count pipes. Disabling pipes.
682 #undef FMSTR_USE_PIPES
683 #define FMSTR_USE_PIPES 0
687 #if FMSTR_PIPES_PRINTF_BUFF_SIZE < 8
688 #error Pipe printf buffer should be at least 8 (see FMSTR_PIPES_PRINTF_BUFF_SIZE)
690 #if FMSTR_PIPES_PRINTF_BUFF_SIZE > 255
691 #error Pipe printf buffer should not exceed 255 (see FMSTR_PIPES_PRINTF_BUFF_SIZE)
697 #ifndef FMSTR_USE_BRIEFINFO
698 #if FMSTR_USE_RECORDER
700 #define FMSTR_USE_BRIEFINFO 0
703 #define FMSTR_USE_BRIEFINFO 1
708 #if FMSTR_USE_BRIEFINFO
709 #if FMSTR_USE_RECORDER
710 #warning The full information structure must be used when recorder is to be used
711 #undef FMSTR_USE_BRIEFINFO
712 #define FMSTR_USE_BRIEFINFO 1
717 #ifndef FMSTR_COMM_BUFFER_SIZE
718 #define FMSTR_COMM_BUFFER_SIZE 0
722 #if FMSTR_COMM_BUFFER_SIZE
725 #if FMSTR_USE_BRIEFINFO && FMSTR_COMM_BUFFER_SIZE < 11
726 #error FMSTR_COMM_BUFFER_SIZE set too small for basic FreeMASTER commands (11 bytes)
730 #if !(FMSTR_USE_BRIEFINFO) && FMSTR_COMM_BUFFER_SIZE < 35
731 #error FMSTR_COMM_BUFFER_SIZE set too small for GETINFO command (size 35)
735 #if FMSTR_USE_APPCMD && FMSTR_COMM_BUFFER_SIZE < ((FMSTR_APPCMD_BUFF_SIZE)+1)
736 #error FMSTR_COMM_BUFFER_SIZE set too small for SENDAPPCMD command (size FMSTR_APPCMD_BUFF_SIZE+1)
740 #if FMSTR_USE_SCOPE && FMSTR_COMM_BUFFER_SIZE < ((FMSTR_MAX_SCOPE_VARS)*5+1)
741 #error FMSTR_COMM_BUFFER_SIZE set too small for SETUPSCOPEEX command (size FMSTR_MAX_SCOPE_VARS*5+1)
745 #if FMSTR_USE_RECORDER && FMSTR_COMM_BUFFER_SIZE < ((FMSTR_MAX_REC_VARS)*5+18)
746 #error FMSTR_COMM_BUFFER_SIZE set too small for SETUPRECEX command (size FMSTR_MAX_REC_VARS*5+18)
751 #if (FMSTR_COMM_BUFFER_SIZE < ((SFIO_MAX_INPUT_DATA_LENGTH)+1)) || \
752 (FMSTR_COMM_BUFFER_SIZE < ((SFIO_MAX_OUTPUT_DATA_LENGTH)+1))
753 #error FMSTR_COMM_BUFFER_SIZE set too small for SFIO encapsulation (see SFIO_MAX_xxx_DATA_LENGTH)
760 #undef FMSTR_COMM_BUFFER_SIZE
761 #define FMSTR_COMM_BUFFER_SIZE 11
764 #if !(FMSTR_USE_BRIEFINFO) && FMSTR_COMM_BUFFER_SIZE < 35
765 #undef FMSTR_COMM_BUFFER_SIZE
766 #define FMSTR_COMM_BUFFER_SIZE 35
770 #if FMSTR_USE_APPCMD && FMSTR_COMM_BUFFER_SIZE < ((FMSTR_APPCMD_BUFF_SIZE)+1)
771 #undef FMSTR_COMM_BUFFER_SIZE
772 #define FMSTR_COMM_BUFFER_SIZE ((FMSTR_APPCMD_BUFF_SIZE)+1)
776 #if FMSTR_USE_SCOPE && FMSTR_COMM_BUFFER_SIZE < ((FMSTR_MAX_SCOPE_VARS)*5+1)
777 #undef FMSTR_COMM_BUFFER_SIZE
778 #define FMSTR_COMM_BUFFER_SIZE ((FMSTR_MAX_SCOPE_VARS)*5+1)
782 #if FMSTR_USE_RECORDER && FMSTR_COMM_BUFFER_SIZE < ((FMSTR_MAX_REC_VARS)*5+18)
783 #undef FMSTR_COMM_BUFFER_SIZE
784 #define FMSTR_COMM_BUFFER_SIZE ((FMSTR_MAX_REC_VARS)*5+18)
789 #if FMSTR_COMM_BUFFER_SIZE < ((SFIO_MAX_INPUT_DATA_LENGTH)+1)
790 #undef FMSTR_COMM_BUFFER_SIZE
791 #define FMSTR_COMM_BUFFER_SIZE ((SFIO_MAX_INPUT_DATA_LENGTH)+1)
797 #if FMSTR_COMM_BUFFER_SIZE < ((SFIO_MAX_OUTPUT_DATA_LENGTH)+1)
798 #undef FMSTR_COMM_BUFFER_SIZE
799 #define FMSTR_COMM_BUFFER_SIZE ((SFIO_MAX_OUTPUT_DATA_LENGTH)+1)
void FMSTR_SendResponse(FMSTR_BPTR pMessageIO, FMSTR_SIZE8 nLength)
FMSTR_BPTR FMSTR_GetStringLen(FMSTR_BPTR pMessageIO)
FMSTR_BPTR FMSTR_WriteVar(FMSTR_BPTR pMessageIO, FMSTR_SIZE8 nSize)
Handling WRITEVAR command.
Definition: freemaster_protocol.c:577
void FMSTR_ProcessSCI(void)
FMSTR_BOOL FMSTR_IsInRecBuffer(FMSTR_ADDR nAddr, FMSTR_SIZE8 nSize)
void FMSTR_ProcessCanRx(void)
FMSTR_BPTR FMSTR_ReadMem(FMSTR_BPTR pMessageIO)
Handling READMEM and READMEM_EX commands.
Definition: freemaster_protocol.c:467
unsigned char FMSTR_BOOL
Definition: freemaster.h:40
unsigned short FMSTR_SIZE
Definition: freemaster.h:39
FMSTR_BOOL FMSTR_CheckTsaSpace(FMSTR_ADDR nAddr, FMSTR_SIZE8 nSize, FMSTR_BOOL bWriteAccess)
FMSTR_BPTR FMSTR_SfioFrame(FMSTR_BPTR pMessageIO)
void FMSTR_InitScope(void)
FMSTR_BPTR FMSTR_ReadVar(FMSTR_BPTR pMessageIO, FMSTR_SIZE8 nSize)
Handling READVAR and READVAR_EX commands (for all sizes 1,2,4)
Definition: freemaster_protocol.c:507
FMSTR_BPTR FMSTR_SfioGetResp(FMSTR_BPTR pMessageIO)
FMSTR_BPTR FMSTR_GetTsaInfo(FMSTR_BPTR pMessageIO)
FMSTR_BOOL FMSTR_RxCan(void)
FreeMASTER Driver hardware dependent stuff.
FMSTR_BPTR FMSTR_GetAppCmdRespData(FMSTR_BPTR pMessageIO)
FMSTR_BPTR FMSTR_GetBoardInfo(FMSTR_BPTR pMessageIO)
Handling GETINFO or GETINFO_BRIEF.
Definition: freemaster_protocol.c:394
unsigned char FMSTR_SIZE8
Definition: freemaster_Kxx.h:80
void FMSTR_InitSerial(void)
FMSTR_BPTR FMSTR_WriteMem(FMSTR_BPTR pMessageIO)
Handling WRITEMEM and WRITEMEM_EX commands.
Definition: freemaster_protocol.c:539
FMSTR_BPTR FMSTR_GetRecBuff(FMSTR_BPTR pMessageIO)
FMSTR_BPTR FMSTR_StartRec(FMSTR_BPTR pMessageIO)
FMSTR_BPTR FMSTR_StopRec(FMSTR_BPTR pMessageIO)
FMSTR_BOOL FMSTR_TxCan(void)
unsigned long FMSTR_U32
Definition: freemaster_Kxx.h:69
FMSTR_U16 FMSTR_StrLen(FMSTR_ADDR nAddr)
Private inline implementation of "strlen" used by TSA and Pipes.
Definition: freemaster_protocol.c:693
FMSTR_SIZE FMSTR_GetRecBuffSize(void)
FMSTR_BPTR FMSTR_ReadScope(FMSTR_BPTR pMessageIO)
void FMSTR_ProcessJTAG(void)
FMSTR_BOOL FMSTR_InitMQX(void)
FMSTR_BPTR FMSTR_PipeFrame(FMSTR_BPTR pMessageIO)
FMSTR_BPTR FMSTR_WriteMemMask(FMSTR_BPTR pMessageIO)
Handling WRITEMEMMASK and WRITEMEMMASK_EX commands.
Definition: freemaster_protocol.c:614
FMSTR_BPTR FMSTR_SetUpScope(FMSTR_BPTR pMessageIO)
unsigned char * FMSTR_BPTR
Definition: freemaster_Kxx.h:84
FMSTR_BPTR FMSTR_GetAppCmdStatus(FMSTR_BPTR pMessageIO)
unsigned char * FMSTR_ADDR
Definition: freemaster.h:38
FMSTR_BPTR FMSTR_GetRecStatus(FMSTR_BPTR pMessageIO)
FMSTR_BPTR FMSTR_SetUpRec(FMSTR_BPTR pMessageIO)
void FMSTR_InitAppCmds(void)
unsigned short FMSTR_U16
Definition: freemaster_Kxx.h:68
FMSTR_BPTR FMSTR_WriteVarMask(FMSTR_BPTR pMessageIO, FMSTR_SIZE8 nSize)
Handling WRITEVARMASK command.
Definition: freemaster_protocol.c:661
void FMSTR_InitPipes(void)
void FMSTR_ProcessCanTx(void)
void FMSTR_SetCanCmdID(FMSTR_U32 canID)
FMSTR_BPTR FMSTR_StoreAppCmd(FMSTR_BPTR pMessageIO)
void FMSTR_InitSfio(void)
void FMSTR_SetCanRespID(FMSTR_U32 canID)
FMSTR_BOOL FMSTR_ProtocolDecoder(FMSTR_BPTR pMessageIO)
Decodes the FreeMASTER protocol and calls appropriate handlers.
Definition: freemaster_protocol.c:98