Flowcode Project File Parser

Ben Rowland 2019 (C) Matrix TSL


Target Device

PIC.16F.16F1937

Constants

SIGNED INT RS_FERR     SIGNED INT STRING_RESPONSE_SIZE     SIGNED INT ASCII_CR     SIGNED INT RESPONSE_PAIR     BOOL false     SIGNED INT RS_LOOP     SIGNED INT RESPONSE_ERROR     SIGNED INT SENDCMD_TIMEOUT     SIGNED INT RESPONSE_OK     SIGNED INT RESPONSE_RING     SIGNED INT RS_OERR     SIGNED INT RS_TIMEOUT     SIGNED INT RESPONSE_NOCARRIER     SIGNED INT ASCII_LF     SIGNED INT RESPONSE_AUDIO     SIGNED INT SENDSCRIPT_TIMEOUT     SIGNED INT RESPONSE_CONNECT     SIGNED INT RS_OK     SIGNED INT RESPONSE_TIMEOUT     SIGNED INT STRINGRX_TIMEOUT     SIGNED INT CommandArraySize     BOOL true    

Globals

BYTE CommandArrayRXPTR     BYTE CommandArray     BYTE pvt_ScriptCount     BYTE CommandArrayTXPTR     BYTE RX_STATUS     BYTE RESPONSE_ARRAY    

ev_Prop_Change    /    StringRead    /    Ev_Timer    /    SendScript    /    SendCommand    /    SendScriptString    /    Ev_ChipChange    /    Read_byte    /    CreateCommandString    /    ev_Init    /    StringReceive    /    Ev_Renamed    /    Ev_GetVarSize    /    CreateCommand    /    Send_byte    /    WaitForResponse    /    Main    /    pvt_Scripts_ShowHide    /    Initialise

ev_Prop_Change

Return:     UNSIGNED LONG
Vars:     STRING temp_str    

Your browser does not support the HTML5 canvas tag.

ev_Prop_Change    /    StringRead    /    Ev_Timer    /    SendScript    /    SendCommand    /    SendScriptString    /    Ev_ChipChange    /    Read_byte    /    CreateCommandString    /    ev_Init    /    StringReceive    /    Ev_Renamed    /    Ev_GetVarSize    /    CreateCommand    /    Send_byte    /    WaitForResponse    /    Main    /    pvt_Scripts_ShowHide    /    Initialise

StringRead

Return:     BYTE
Params:     BYTE idx    

Your browser does not support the HTML5 canvas tag.

ev_Prop_Change    /    StringRead    /    Ev_Timer    /    SendScript    /    SendCommand    /    SendScriptString    /    Ev_ChipChange    /    Read_byte    /    CreateCommandString    /    ev_Init    /    StringReceive    /    Ev_Renamed    /    Ev_GetVarSize    /    CreateCommand    /    Send_byte    /    WaitForResponse    /    Main    /    pvt_Scripts_ShowHide    /    Initialise

Ev_Timer

Return:     UNSIGNED LONG
Params:     UNSIGNED LONG TimerID    
Vars:     HANDLE Handle    

Your browser does not support the HTML5 canvas tag.

ev_Prop_Change    /    StringRead    /    Ev_Timer    /    SendScript    /    SendCommand    /    SendScriptString    /    Ev_ChipChange    /    Read_byte    /    CreateCommandString    /    ev_Init    /    StringReceive    /    Ev_Renamed    /    Ev_GetVarSize    /    CreateCommand    /    Send_byte    /    WaitForResponse    /    Main    /    pvt_Scripts_ShowHide    /    Initialise

SendScript

Return:     BYTE
Params:     BYTE idx    

Your browser does not support the HTML5 canvas tag.

ev_Prop_Change    /    StringRead    /    Ev_Timer    /    SendScript    /    SendCommand    /    SendScriptString    /    Ev_ChipChange    /    Read_byte    /    CreateCommandString    /    ev_Init    /    StringReceive    /    Ev_Renamed    /    Ev_GetVarSize    /    CreateCommand    /    Send_byte    /    WaitForResponse    /    Main    /    pvt_Scripts_ShowHide    /    Initialise

SendCommand

Return:     BYTE
Params:     BYTE ExpectEcho     BYTE SendCR    
Vars:     BYTE Idx     BYTE Dummy    

Your browser does not support the HTML5 canvas tag.

ev_Prop_Change    /    StringRead    /    Ev_Timer    /    SendScript    /    SendCommand    /    SendScriptString    /    Ev_ChipChange    /    Read_byte    /    CreateCommandString    /    ev_Init    /    StringReceive    /    Ev_Renamed    /    Ev_GetVarSize    /    CreateCommand    /    Send_byte    /    WaitForResponse    /    Main    /    pvt_Scripts_ShowHide    /    Initialise

SendScriptString

Return:     VOID
Params:     STRING str    
Vars:     BYTE i    

Your browser does not support the HTML5 canvas tag.

ev_Prop_Change    /    StringRead    /    Ev_Timer    /    SendScript    /    SendCommand    /    SendScriptString    /    Ev_ChipChange    /    Read_byte    /    CreateCommandString    /    ev_Init    /    StringReceive    /    Ev_Renamed    /    Ev_GetVarSize    /    CreateCommand    /    Send_byte    /    WaitForResponse    /    Main    /    pvt_Scripts_ShowHide    /    Initialise

Ev_ChipChange

Return:     UNSIGNED LONG
Params:     STRING Target    

Your browser does not support the HTML5 canvas tag.

ev_Prop_Change    /    StringRead    /    Ev_Timer    /    SendScript    /    SendCommand    /    SendScriptString    /    Ev_ChipChange    /    Read_byte    /    CreateCommandString    /    ev_Init    /    StringReceive    /    Ev_Renamed    /    Ev_GetVarSize    /    CreateCommand    /    Send_byte    /    WaitForResponse    /    Main    /    pvt_Scripts_ShowHide    /    Initialise

Read_byte

Return:     BYTE
Params:     BYTE Timeout    
Vars:     SIGNED INT RxInt    

Your browser does not support the HTML5 canvas tag.

ev_Prop_Change    /    StringRead    /    Ev_Timer    /    SendScript    /    SendCommand    /    SendScriptString    /    Ev_ChipChange    /    Read_byte    /    CreateCommandString    /    ev_Init    /    StringReceive    /    Ev_Renamed    /    Ev_GetVarSize    /    CreateCommand    /    Send_byte    /    WaitForResponse    /    Main    /    pvt_Scripts_ShowHide    /    Initialise

CreateCommandString

Return:     BYTE
Params:     STRING Data    
Vars:     BYTE len     BYTE idx    

Your browser does not support the HTML5 canvas tag.

ev_Prop_Change    /    StringRead    /    Ev_Timer    /    SendScript    /    SendCommand    /    SendScriptString    /    Ev_ChipChange    /    Read_byte    /    CreateCommandString    /    ev_Init    /    StringReceive    /    Ev_Renamed    /    Ev_GetVarSize    /    CreateCommand    /    Send_byte    /    WaitForResponse    /    Main    /    pvt_Scripts_ShowHide    /    Initialise

ev_Init

Return:     UNSIGNED LONG
Vars:     STRING temp    

Your browser does not support the HTML5 canvas tag.

ev_Prop_Change    /    StringRead    /    Ev_Timer    /    SendScript    /    SendCommand    /    SendScriptString    /    Ev_ChipChange    /    Read_byte    /    CreateCommandString    /    ev_Init    /    StringReceive    /    Ev_Renamed    /    Ev_GetVarSize    /    CreateCommand    /    Send_byte    /    WaitForResponse    /    Main    /    pvt_Scripts_ShowHide    /    Initialise

StringReceive

Return:     BYTE
Vars:     BYTE ch     BYTE crlf_flags     BYTE timeout    

Your browser does not support the HTML5 canvas tag.

ev_Prop_Change    /    StringRead    /    Ev_Timer    /    SendScript    /    SendCommand    /    SendScriptString    /    Ev_ChipChange    /    Read_byte    /    CreateCommandString    /    ev_Init    /    StringReceive    /    Ev_Renamed    /    Ev_GetVarSize    /    CreateCommand    /    Send_byte    /    WaitForResponse    /    Main    /    pvt_Scripts_ShowHide    /    Initialise

Ev_Renamed

Return:     UNSIGNED LONG
Vars:     STRING Name    

Your browser does not support the HTML5 canvas tag.

ev_Prop_Change    /    StringRead    /    Ev_Timer    /    SendScript    /    SendCommand    /    SendScriptString    /    Ev_ChipChange    /    Read_byte    /    CreateCommandString    /    ev_Init    /    StringReceive    /    Ev_Renamed    /    Ev_GetVarSize    /    CreateCommand    /    Send_byte    /    WaitForResponse    /    Main    /    pvt_Scripts_ShowHide    /    Initialise

Ev_GetVarSize

Return:     UNSIGNED LONG
Params:     STRING VarName     Elements    
Vars:     BYTE comp    

Your browser does not support the HTML5 canvas tag.

ev_Prop_Change    /    StringRead    /    Ev_Timer    /    SendScript    /    SendCommand    /    SendScriptString    /    Ev_ChipChange    /    Read_byte    /    CreateCommandString    /    ev_Init    /    StringReceive    /    Ev_Renamed    /    Ev_GetVarSize    /    CreateCommand    /    Send_byte    /    WaitForResponse    /    Main    /    pvt_Scripts_ShowHide    /    Initialise

CreateCommand

Return:     BYTE
Params:     BYTE Character    

Your browser does not support the HTML5 canvas tag.

ev_Prop_Change    /    StringRead    /    Ev_Timer    /    SendScript    /    SendCommand    /    SendScriptString    /    Ev_ChipChange    /    Read_byte    /    CreateCommandString    /    ev_Init    /    StringReceive    /    Ev_Renamed    /    Ev_GetVarSize    /    CreateCommand    /    Send_byte    /    WaitForResponse    /    Main    /    pvt_Scripts_ShowHide    /    Initialise

Send_byte

Return:     VOID
Params:     BYTE ByteVal    

Your browser does not support the HTML5 canvas tag.

ev_Prop_Change    /    StringRead    /    Ev_Timer    /    SendScript    /    SendCommand    /    SendScriptString    /    Ev_ChipChange    /    Read_byte    /    CreateCommandString    /    ev_Init    /    StringReceive    /    Ev_Renamed    /    Ev_GetVarSize    /    CreateCommand    /    Send_byte    /    WaitForResponse    /    Main    /    pvt_Scripts_ShowHide    /    Initialise

WaitForResponse

Return:     BYTE
Params:     BYTE response_code     BYTE timeout    
Vars:     BYTE resp_size     BYTE ch     BYTE rx_ptr     BYTE crlf_flags     BYTE unexpected    

Your browser does not support the HTML5 canvas tag.

ev_Prop_Change    /    StringRead    /    Ev_Timer    /    SendScript    /    SendCommand    /    SendScriptString    /    Ev_ChipChange    /    Read_byte    /    CreateCommandString    /    ev_Init    /    StringReceive    /    Ev_Renamed    /    Ev_GetVarSize    /    CreateCommand    /    Send_byte    /    WaitForResponse    /    Main    /    pvt_Scripts_ShowHide    /    Initialise

Main

Return:     VOID

Your browser does not support the HTML5 canvas tag.

ev_Prop_Change    /    StringRead    /    Ev_Timer    /    SendScript    /    SendCommand    /    SendScriptString    /    Ev_ChipChange    /    Read_byte    /    CreateCommandString    /    ev_Init    /    StringReceive    /    Ev_Renamed    /    Ev_GetVarSize    /    CreateCommand    /    Send_byte    /    WaitForResponse    /    Main    /    pvt_Scripts_ShowHide    /    Initialise

pvt_Scripts_ShowHide

Return:     VOID

Your browser does not support the HTML5 canvas tag.

ev_Prop_Change    /    StringRead    /    Ev_Timer    /    SendScript    /    SendCommand    /    SendScriptString    /    Ev_ChipChange    /    Read_byte    /    CreateCommandString    /    ev_Init    /    StringReceive    /    Ev_Renamed    /    Ev_GetVarSize    /    CreateCommand    /    Send_byte    /    WaitForResponse    /    Main    /    pvt_Scripts_ShowHide    /    Initialise

Initialise

Return:     VOID

Your browser does not support the HTML5 canvas tag.

Verison History

Version 0.6
12/09/19 BR - Created initial recursive parser
14/09/19 BR - Added support for disabled icons
18/09/19 BR - Fixed decision icon parsing
19/09/19 BR - Added switch icon support
23/09/19 BR - Fixed recursive loop spacing
27/09/19 BR - Further tweaked spacing and added Macro menu
30/09/19 BR - Improved all string spacing
01/10/19 BR - Improved While icon support