2021-11-27 12:29:26 +01:00
|
|
|
/*
|
2023-01-27 17:03:39 +01:00
|
|
|
* © 2020-2022 Chris Harlow. All rights reserved.
|
2023-08-12 19:40:48 +02:00
|
|
|
* © 2022-2023 Colin Murdoch
|
2023-01-27 17:03:39 +01:00
|
|
|
* © 2023 Harald Barth
|
2025-01-09 20:40:07 +01:00
|
|
|
* © 2025 Morten Nielsen
|
2021-11-27 12:29:26 +01:00
|
|
|
*
|
|
|
|
* This file is part of CommandStation-EX
|
|
|
|
*
|
|
|
|
* This is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* It is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
2025-02-02 13:29:12 +01:00
|
|
|
* along with CommandStation. If not, see https://www.gnu.org/licenses/.
|
2021-11-27 12:29:26 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
// This file cleans and resets the RMFT2 Macros.
|
|
|
|
// It is used between passes to reduce complexity in RMFT2Macros.h
|
|
|
|
// DO NOT add an include guard to this file.
|
|
|
|
|
2025-02-02 13:29:12 +01:00
|
|
|
// Doxygen comments in this file are intended for the EXRAIL end user.
|
|
|
|
|
2021-11-27 12:29:26 +01:00
|
|
|
// Undefine all RMFT macros
|
|
|
|
#undef ACTIVATE
|
|
|
|
#undef ACTIVATEL
|
|
|
|
#undef AFTER
|
2023-09-05 13:21:09 +02:00
|
|
|
#undef AFTEROVERLOAD
|
2021-11-27 12:29:26 +01:00
|
|
|
#undef ALIAS
|
|
|
|
#undef AMBER
|
2023-02-04 21:56:12 +01:00
|
|
|
#undef ANOUT
|
2024-02-15 21:05:27 +01:00
|
|
|
#undef ASPECT
|
2021-11-27 12:29:26 +01:00
|
|
|
#undef AT
|
2022-03-18 14:46:07 +01:00
|
|
|
#undef ATGTE
|
|
|
|
#undef ATLT
|
2022-01-03 11:15:10 +01:00
|
|
|
#undef ATTIMEOUT
|
2021-11-27 12:29:26 +01:00
|
|
|
#undef AUTOMATION
|
|
|
|
#undef AUTOSTART
|
2024-04-09 21:45:28 +02:00
|
|
|
#undef BLINK
|
2022-03-07 17:30:47 +01:00
|
|
|
#undef BROADCAST
|
2021-11-27 12:29:26 +01:00
|
|
|
#undef CALL
|
2023-11-23 11:41:35 +01:00
|
|
|
#undef CLEAR_STASH
|
|
|
|
#undef CLEAR_ALL_STASH
|
2021-11-27 12:29:26 +01:00
|
|
|
#undef CLOSE
|
2024-02-09 12:54:53 +01:00
|
|
|
#undef CONFIGURE_SERVO
|
2022-06-18 13:31:54 +02:00
|
|
|
#undef DCC_SIGNAL
|
2024-02-16 12:49:02 +01:00
|
|
|
#undef DCCX_SIGNAL
|
2023-09-02 00:29:49 +02:00
|
|
|
#undef DCC_TURNTABLE
|
2021-11-27 12:29:26 +01:00
|
|
|
#undef DEACTIVATE
|
|
|
|
#undef DEACTIVATEL
|
|
|
|
#undef DELAY
|
|
|
|
#undef DELAYMINS
|
|
|
|
#undef DELAYRANDOM
|
|
|
|
#undef DONE
|
|
|
|
#undef DRIVE
|
2022-01-02 20:41:57 +01:00
|
|
|
#undef ELSE
|
2021-11-27 12:29:26 +01:00
|
|
|
#undef ENDEXRAIL
|
|
|
|
#undef ENDIF
|
|
|
|
#undef ENDTASK
|
2023-09-02 00:29:49 +02:00
|
|
|
#undef ESTOP
|
|
|
|
#undef EXRAIL
|
|
|
|
#undef EXTT_TURNTABLE
|
2021-11-27 12:29:26 +01:00
|
|
|
#undef FADE
|
|
|
|
#undef FOFF
|
|
|
|
#undef FOLLOW
|
|
|
|
#undef FON
|
2022-03-24 11:40:49 +01:00
|
|
|
#undef FORGET
|
2024-04-09 21:45:28 +02:00
|
|
|
#undef FTOGGLE
|
2021-11-27 12:29:26 +01:00
|
|
|
#undef FREE
|
|
|
|
#undef FWD
|
|
|
|
#undef GREEN
|
2022-06-15 12:44:46 +02:00
|
|
|
#undef HAL
|
2024-01-14 21:20:22 +01:00
|
|
|
#undef HAL_IGNORE_DEFAULTS
|
2021-11-27 12:29:26 +01:00
|
|
|
#undef IF
|
2022-04-17 10:58:32 +02:00
|
|
|
#undef IFAMBER
|
2021-12-29 12:15:31 +01:00
|
|
|
#undef IFCLOSED
|
2022-04-17 10:58:32 +02:00
|
|
|
#undef IFGREEN
|
2021-11-30 14:52:22 +01:00
|
|
|
#undef IFGTE
|
2023-01-26 16:55:58 +01:00
|
|
|
#undef IFLOCO
|
2021-11-30 14:52:22 +01:00
|
|
|
#undef IFLT
|
2021-11-27 12:29:26 +01:00
|
|
|
#undef IFNOT
|
|
|
|
#undef IFRANDOM
|
2022-04-17 10:58:32 +02:00
|
|
|
#undef IFRED
|
2021-11-27 12:29:26 +01:00
|
|
|
#undef IFRESERVE
|
2021-12-29 12:15:31 +01:00
|
|
|
#undef IFTHROWN
|
2022-01-03 11:15:10 +01:00
|
|
|
#undef IFTIMEOUT
|
2023-09-02 00:29:49 +02:00
|
|
|
#undef IFTTPOSITION
|
2022-12-30 00:46:42 +01:00
|
|
|
#undef IFRE
|
2021-11-27 12:29:26 +01:00
|
|
|
#undef INVERT_DIRECTION
|
2024-02-07 23:11:27 +01:00
|
|
|
#undef JMRI_SENSOR
|
2021-11-27 12:29:26 +01:00
|
|
|
#undef JOIN
|
2022-03-31 22:52:43 +02:00
|
|
|
#undef KILLALL
|
2021-11-27 12:29:26 +01:00
|
|
|
#undef LATCH
|
|
|
|
#undef LCD
|
2023-02-12 00:37:09 +01:00
|
|
|
#undef SCREEN
|
2023-10-13 14:59:06 +02:00
|
|
|
#undef LCC
|
|
|
|
#undef LCCX
|
2021-11-27 12:29:26 +01:00
|
|
|
#undef LCN
|
2022-08-13 22:48:03 +02:00
|
|
|
#undef MOVETT
|
2024-09-22 13:36:19 +02:00
|
|
|
#undef NEOPIXEL
|
|
|
|
#undef NEOPIXEL_OFF
|
|
|
|
#undef NEOPIXEL_SIGNAL
|
2024-06-13 14:01:33 +02:00
|
|
|
#undef ACON
|
|
|
|
#undef ACOF
|
|
|
|
#undef ONACON
|
|
|
|
#undef ONACOF
|
2024-03-08 21:33:11 +01:00
|
|
|
#undef MESSAGE
|
2021-11-27 12:29:26 +01:00
|
|
|
#undef ONACTIVATE
|
|
|
|
#undef ONACTIVATEL
|
2022-06-17 12:48:37 +02:00
|
|
|
#undef ONAMBER
|
2021-11-27 12:29:26 +01:00
|
|
|
#undef ONDEACTIVATE
|
|
|
|
#undef ONDEACTIVATEL
|
|
|
|
#undef ONCLOSE
|
2023-10-13 14:59:06 +02:00
|
|
|
#undef ONLCC
|
2023-01-11 18:36:11 +01:00
|
|
|
#undef ONTIME
|
|
|
|
#undef ONCLOCKTIME
|
2023-04-12 13:07:08 +02:00
|
|
|
#undef ONCLOCKMINS
|
2023-08-12 19:40:48 +02:00
|
|
|
#undef ONOVERLOAD
|
2022-06-17 12:48:37 +02:00
|
|
|
#undef ONGREEN
|
|
|
|
#undef ONRED
|
2023-09-02 00:29:49 +02:00
|
|
|
#undef ONROTATE
|
2024-04-13 09:12:35 +02:00
|
|
|
#undef ONBUTTON
|
|
|
|
#undef ONSENSOR
|
2021-11-27 12:29:26 +01:00
|
|
|
#undef ONTHROW
|
2022-12-30 00:46:42 +01:00
|
|
|
#undef ONCHANGE
|
2022-03-31 23:04:40 +02:00
|
|
|
#undef PARSE
|
2021-11-27 12:29:26 +01:00
|
|
|
#undef PAUSE
|
2023-11-23 11:41:35 +01:00
|
|
|
#undef PICKUP_STASH
|
2021-11-27 12:29:26 +01:00
|
|
|
#undef PIN_TURNOUT
|
|
|
|
#undef PRINT
|
2023-04-20 00:16:32 +02:00
|
|
|
#ifndef DISABLE_PROG
|
2021-11-27 12:29:26 +01:00
|
|
|
#undef POM
|
2023-04-20 00:16:32 +02:00
|
|
|
#endif
|
2021-11-27 12:29:26 +01:00
|
|
|
#undef POWEROFF
|
2022-02-28 11:38:26 +01:00
|
|
|
#undef POWERON
|
2021-11-27 12:29:26 +01:00
|
|
|
#undef READ_LOCO
|
|
|
|
#undef RED
|
|
|
|
#undef RESERVE
|
|
|
|
#undef RESET
|
|
|
|
#undef RESUME
|
|
|
|
#undef RETURN
|
2021-12-26 19:24:04 +01:00
|
|
|
#undef REV
|
2023-09-02 00:29:49 +02:00
|
|
|
#undef ROSTER
|
|
|
|
#undef ROTATE
|
2023-09-08 23:22:10 +02:00
|
|
|
#undef ROTATE_DCC
|
2021-11-27 12:29:26 +01:00
|
|
|
#undef ROUTE
|
2023-11-09 20:27:52 +01:00
|
|
|
#undef ROUTE_ACTIVE
|
|
|
|
#undef ROUTE_INACTIVE
|
2023-11-07 17:27:26 +01:00
|
|
|
#undef ROUTE_HIDDEN
|
2023-11-17 11:45:36 +01:00
|
|
|
#undef ROUTE_DISABLED
|
2023-11-07 17:27:26 +01:00
|
|
|
#undef ROUTE_CAPTION
|
2021-11-27 12:29:26 +01:00
|
|
|
#undef SENDLOCO
|
|
|
|
#undef SEQUENCE
|
|
|
|
#undef SERIAL
|
|
|
|
#undef SERIAL1
|
|
|
|
#undef SERIAL2
|
|
|
|
#undef SERIAL3
|
2022-12-16 14:14:48 +01:00
|
|
|
#undef SERIAL4
|
|
|
|
#undef SERIAL5
|
|
|
|
#undef SERIAL6
|
2021-11-27 12:29:26 +01:00
|
|
|
#undef SERVO
|
|
|
|
#undef SERVO2
|
|
|
|
#undef SERVO_TURNOUT
|
2022-02-06 14:56:51 +01:00
|
|
|
#undef SERVO_SIGNAL
|
2021-11-27 12:29:26 +01:00
|
|
|
#undef SET
|
2022-03-19 17:26:29 +01:00
|
|
|
#undef SET_TRACK
|
2023-09-24 16:40:42 +02:00
|
|
|
#undef SET_POWER
|
2021-11-27 12:29:26 +01:00
|
|
|
#undef SETLOCO
|
2024-01-20 19:09:03 +01:00
|
|
|
#undef SETFREQ
|
2021-11-27 12:29:26 +01:00
|
|
|
#undef SIGNAL
|
2022-03-18 14:46:07 +01:00
|
|
|
#undef SIGNALH
|
2021-11-27 12:29:26 +01:00
|
|
|
#undef SPEED
|
|
|
|
#undef START
|
2023-11-23 11:41:35 +01:00
|
|
|
#undef STASH
|
2023-11-30 12:32:39 +01:00
|
|
|
#undef STEALTH
|
2024-04-09 21:45:28 +02:00
|
|
|
#undef STEALTH_GLOBAL
|
2021-11-27 12:29:26 +01:00
|
|
|
#undef STOP
|
2023-09-02 00:29:49 +02:00
|
|
|
#undef THROW
|
2024-04-09 21:45:28 +02:00
|
|
|
#undef TOGGLE_TURNOUT
|
2023-09-02 00:29:49 +02:00
|
|
|
#undef TT_ADDPOSITION
|
2021-11-27 12:29:26 +01:00
|
|
|
#undef TURNOUT
|
2023-04-08 18:22:39 +02:00
|
|
|
#undef TURNOUTL
|
2021-11-27 12:29:26 +01:00
|
|
|
#undef UNJOIN
|
|
|
|
#undef UNLATCH
|
2022-06-18 13:31:54 +02:00
|
|
|
#undef VIRTUAL_SIGNAL
|
2022-03-24 12:56:06 +01:00
|
|
|
#undef VIRTUAL_TURNOUT
|
2021-11-27 12:29:26 +01:00
|
|
|
#undef WAITFOR
|
2023-09-06 23:58:19 +02:00
|
|
|
#ifndef IO_NO_HAL
|
|
|
|
#undef WAITFORTT
|
|
|
|
#endif
|
2023-05-01 15:25:45 +02:00
|
|
|
#undef WITHROTTLE
|
2021-11-27 12:29:26 +01:00
|
|
|
#undef XFOFF
|
|
|
|
#undef XFON
|
2024-04-09 21:45:28 +02:00
|
|
|
#undef XFTOGGLE
|
2025-01-09 20:40:07 +01:00
|
|
|
#undef XREV
|
|
|
|
#undef XFWD
|
2021-11-27 12:29:26 +01:00
|
|
|
|
|
|
|
#ifndef RMFT2_UNDEF_ONLY
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def ACTIVATE(addr,subaddr)
|
|
|
|
* @brief
|
|
|
|
* @param addr
|
|
|
|
* @param subaddr
|
|
|
|
*/
|
2021-11-27 12:29:26 +01:00
|
|
|
#define ACTIVATE(addr,subaddr)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def ACTIVATEL(addr)
|
|
|
|
* @brief
|
|
|
|
* @param addr
|
|
|
|
*/
|
2021-11-27 12:29:26 +01:00
|
|
|
#define ACTIVATEL(addr)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def AFTER(sensor_id,timer...)
|
|
|
|
* @brief
|
|
|
|
* @param sensor_id
|
|
|
|
* @param timer...
|
|
|
|
*/
|
2024-07-10 11:58:22 +02:00
|
|
|
#define AFTER(sensor_id,timer...)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def AFTEROVERLOAD(track_id)
|
|
|
|
* @brief
|
|
|
|
* @param track_id
|
|
|
|
*/
|
2023-09-05 13:21:09 +02:00
|
|
|
#define AFTEROVERLOAD(track_id)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def ALIAS(name,value...)
|
|
|
|
* @brief
|
|
|
|
* @param name
|
|
|
|
* @param value...
|
|
|
|
*/
|
2022-03-21 17:29:35 +01:00
|
|
|
#define ALIAS(name,value...)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def AMBER(signal_id)
|
|
|
|
* @brief
|
|
|
|
* @param signal_id
|
|
|
|
*/
|
2021-11-27 12:29:26 +01:00
|
|
|
#define AMBER(signal_id)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def ANOUT(vpin,value,param1,param2)
|
|
|
|
* @brief
|
|
|
|
* @param vpin
|
|
|
|
* @param value
|
|
|
|
* @param param1
|
|
|
|
* @param param2
|
|
|
|
*/
|
2023-02-04 21:56:12 +01:00
|
|
|
#define ANOUT(vpin,value,param1,param2)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def AT(sensor_id)
|
|
|
|
* @brief
|
|
|
|
* @param sensor_id
|
|
|
|
*/
|
2021-11-27 12:29:26 +01:00
|
|
|
#define AT(sensor_id)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def ASPECT(address,value)
|
|
|
|
* @brief
|
|
|
|
* @param address
|
|
|
|
* @param value
|
|
|
|
*/
|
2024-02-15 21:05:27 +01:00
|
|
|
#define ASPECT(address,value)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def ATGTE(sensor_id,value)
|
|
|
|
* @brief
|
|
|
|
* @param sensor_id
|
|
|
|
* @param value
|
|
|
|
*/
|
2022-03-18 14:46:07 +01:00
|
|
|
#define ATGTE(sensor_id,value)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def ATLT(sensor_id,value)
|
|
|
|
* @brief
|
|
|
|
* @param sensor_id
|
|
|
|
* @param value
|
|
|
|
*/
|
2022-03-18 14:46:07 +01:00
|
|
|
#define ATLT(sensor_id,value)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def ATTIMEOUT(sensor_id,timeout_ms)
|
|
|
|
* @brief
|
|
|
|
* @param sensor_id
|
|
|
|
* @param timeout_ms
|
|
|
|
*/
|
2022-01-03 11:15:10 +01:00
|
|
|
#define ATTIMEOUT(sensor_id,timeout_ms)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def AUTOMATION(id,description)
|
|
|
|
* @brief
|
|
|
|
* @param id
|
|
|
|
* @param description
|
|
|
|
*/
|
2022-04-12 19:47:06 +02:00
|
|
|
#define AUTOMATION(id,description)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def AUTOSTART
|
|
|
|
* @brief
|
|
|
|
*/
|
2021-11-27 12:29:26 +01:00
|
|
|
#define AUTOSTART
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def BLINK(vpin,onDuty,offDuty)
|
|
|
|
* @brief
|
|
|
|
* @param vpin
|
|
|
|
* @param onDuty
|
|
|
|
* @param offDuty
|
|
|
|
*/
|
2024-04-09 21:45:28 +02:00
|
|
|
#define BLINK(vpin,onDuty,offDuty)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def BROADCAST(msg)
|
|
|
|
* @brief
|
|
|
|
* @param msg
|
|
|
|
*/
|
2022-03-07 17:30:47 +01:00
|
|
|
#define BROADCAST(msg)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def CALL(route)
|
|
|
|
* @brief
|
|
|
|
* @param route
|
|
|
|
*/
|
2023-11-23 11:41:35 +01:00
|
|
|
#define CALL(route)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def CLEAR_STASH(id)
|
|
|
|
* @brief
|
|
|
|
* @param id
|
|
|
|
*/
|
2023-11-23 11:41:35 +01:00
|
|
|
#define CLEAR_STASH(id)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def CLEAR_ALL_STASH(id)
|
|
|
|
* @brief
|
|
|
|
* @param id
|
|
|
|
*/
|
2023-11-23 11:41:35 +01:00
|
|
|
#define CLEAR_ALL_STASH(id)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def CLOSE(id)
|
|
|
|
* @brief
|
|
|
|
* @param id
|
|
|
|
*/
|
2024-02-09 12:54:53 +01:00
|
|
|
#define CLOSE(id)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def CONFIGURE_SERVO(vpin,pos1,pos2,profile)
|
|
|
|
* @brief
|
|
|
|
* @param vpin
|
|
|
|
* @param pos1
|
|
|
|
* @param pos2
|
|
|
|
* @param profile
|
|
|
|
*/
|
2024-02-09 12:54:53 +01:00
|
|
|
#define CONFIGURE_SERVO(vpin,pos1,pos2,profile)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def DCC_SIGNAL(id,add,subaddr)
|
|
|
|
* @brief
|
|
|
|
* @param id
|
|
|
|
* @param add
|
|
|
|
* @param subaddr
|
|
|
|
*/
|
2022-06-18 13:31:54 +02:00
|
|
|
#define DCC_SIGNAL(id,add,subaddr)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def DCCX_SIGNAL(id,redAspect,amberAspect,greenAspect)
|
|
|
|
* @brief
|
|
|
|
* @param id
|
|
|
|
* @param redAspect
|
|
|
|
* @param amberAspect
|
|
|
|
* @param greenAspect
|
|
|
|
*/
|
2024-02-16 12:49:02 +01:00
|
|
|
#define DCCX_SIGNAL(id,redAspect,amberAspect,greenAspect)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def DCC_TURNTABLE(id,home,description...)
|
|
|
|
* @brief
|
|
|
|
* @param id
|
|
|
|
* @param home
|
|
|
|
* @param description...
|
|
|
|
*/
|
2024-11-11 02:06:56 +01:00
|
|
|
#define DCC_TURNTABLE(id,home,description...)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def DEACTIVATE(addr,subaddr)
|
|
|
|
* @brief
|
|
|
|
* @param addr
|
|
|
|
* @param subaddr
|
|
|
|
*/
|
2021-11-27 12:29:26 +01:00
|
|
|
#define DEACTIVATE(addr,subaddr)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def DEACTIVATEL(addr)
|
|
|
|
* @brief
|
|
|
|
* @param addr
|
|
|
|
*/
|
2021-11-27 12:29:26 +01:00
|
|
|
#define DEACTIVATEL(addr)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def DELAY(mindelay)
|
|
|
|
* @brief
|
|
|
|
* @param mindelay
|
|
|
|
*/
|
2021-11-27 12:29:26 +01:00
|
|
|
#define DELAY(mindelay)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def DELAYMINS(mindelay)
|
|
|
|
* @brief
|
|
|
|
* @param mindelay
|
|
|
|
*/
|
2021-11-27 12:29:26 +01:00
|
|
|
#define DELAYMINS(mindelay)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def DELAYRANDOM(mindelay,maxdelay)
|
|
|
|
* @brief
|
|
|
|
* @param mindelay
|
|
|
|
* @param maxdelay
|
|
|
|
*/
|
2021-11-27 12:29:26 +01:00
|
|
|
#define DELAYRANDOM(mindelay,maxdelay)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def DONE
|
|
|
|
* @brief
|
|
|
|
*/
|
2021-11-27 12:29:26 +01:00
|
|
|
#define DONE
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def DRIVE(analogpin)
|
|
|
|
* @brief
|
|
|
|
* @param analogpin
|
|
|
|
*/
|
2021-11-27 12:29:26 +01:00
|
|
|
#define DRIVE(analogpin)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def ELSE
|
|
|
|
* @brief
|
|
|
|
*/
|
2022-01-02 20:41:57 +01:00
|
|
|
#define ELSE
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def ENDEXRAIL
|
|
|
|
* @brief
|
|
|
|
*/
|
2021-11-27 12:29:26 +01:00
|
|
|
#define ENDEXRAIL
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def ENDIF
|
|
|
|
* @brief
|
|
|
|
*/
|
2021-11-27 12:29:26 +01:00
|
|
|
#define ENDIF
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def ENDTASK
|
|
|
|
* @brief
|
|
|
|
*/
|
2021-11-27 12:29:26 +01:00
|
|
|
#define ENDTASK
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def ESTOP
|
|
|
|
* @brief
|
|
|
|
*/
|
2021-11-27 12:29:26 +01:00
|
|
|
#define ESTOP
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def EXRAIL
|
|
|
|
* @brief
|
|
|
|
*/
|
2023-09-02 00:29:49 +02:00
|
|
|
#define EXRAIL
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def EXTT_TURNTABLE(id,vpin,home,description...)
|
|
|
|
* @brief
|
|
|
|
* @param id
|
|
|
|
* @param vpin
|
|
|
|
* @param home
|
|
|
|
* @param description...
|
|
|
|
*/
|
2024-11-11 02:06:56 +01:00
|
|
|
#define EXTT_TURNTABLE(id,vpin,home,description...)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def FADE(pin,value,ms)
|
|
|
|
* @brief
|
|
|
|
* @param pin
|
|
|
|
* @param value
|
|
|
|
* @param ms
|
|
|
|
*/
|
2021-11-27 12:29:26 +01:00
|
|
|
#define FADE(pin,value,ms)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def FOFF(func)
|
|
|
|
* @brief
|
|
|
|
* @param func
|
|
|
|
*/
|
2021-11-27 12:29:26 +01:00
|
|
|
#define FOFF(func)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def FOLLOW(route)
|
|
|
|
* @brief
|
|
|
|
* @param route
|
|
|
|
*/
|
2021-11-27 12:29:26 +01:00
|
|
|
#define FOLLOW(route)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def FON(func)
|
|
|
|
* @brief
|
|
|
|
* @param func
|
|
|
|
*/
|
2022-03-24 11:40:49 +01:00
|
|
|
#define FON(func)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def FORGET
|
|
|
|
* @brief
|
|
|
|
*/
|
2022-03-24 11:40:49 +01:00
|
|
|
#define FORGET
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def FREE(blockid)
|
|
|
|
* @brief
|
|
|
|
* @param blockid
|
|
|
|
*/
|
2021-11-27 12:29:26 +01:00
|
|
|
#define FREE(blockid)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def FTOGGLE(func)
|
|
|
|
* @brief
|
|
|
|
* @param func
|
|
|
|
*/
|
2024-04-09 21:45:28 +02:00
|
|
|
#define FTOGGLE(func)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def FWD(speed)
|
|
|
|
* @brief
|
|
|
|
* @param speed
|
|
|
|
*/
|
2021-11-27 12:29:26 +01:00
|
|
|
#define FWD(speed)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def GREEN(signal_id)
|
|
|
|
* @brief
|
|
|
|
* @param signal_id
|
|
|
|
*/
|
2021-11-27 12:29:26 +01:00
|
|
|
#define GREEN(signal_id)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def HAL(haltype,params...)
|
|
|
|
* @brief
|
|
|
|
* @param haltype
|
|
|
|
* @param params...
|
|
|
|
*/
|
2022-06-15 12:44:46 +02:00
|
|
|
#define HAL(haltype,params...)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def HAL_IGNORE_DEFAULTS
|
|
|
|
* @brief
|
|
|
|
*/
|
2024-01-14 21:20:22 +01:00
|
|
|
#define HAL_IGNORE_DEFAULTS
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def IF(sensor_id)
|
|
|
|
* @brief
|
|
|
|
* @param sensor_id
|
|
|
|
*/
|
2021-11-27 12:29:26 +01:00
|
|
|
#define IF(sensor_id)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def IFAMBER(signal_id)
|
|
|
|
* @brief
|
|
|
|
* @param signal_id
|
|
|
|
*/
|
2022-04-17 10:58:32 +02:00
|
|
|
#define IFAMBER(signal_id)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def IFCLOSED(turnout_id)
|
|
|
|
* @brief
|
|
|
|
* @param turnout_id
|
|
|
|
*/
|
2021-12-29 12:15:31 +01:00
|
|
|
#define IFCLOSED(turnout_id)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def IFGREEN(signal_id)
|
|
|
|
* @brief
|
|
|
|
* @param signal_id
|
|
|
|
*/
|
2022-04-17 10:58:32 +02:00
|
|
|
#define IFGREEN(signal_id)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def IFGTE(sensor_id,value)
|
|
|
|
* @brief
|
|
|
|
* @param sensor_id
|
|
|
|
* @param value
|
|
|
|
*/
|
2021-11-30 14:52:22 +01:00
|
|
|
#define IFGTE(sensor_id,value)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def IFLOCO(loco_id)
|
|
|
|
* @brief
|
|
|
|
* @param loco_id
|
|
|
|
*/
|
2023-01-26 16:55:58 +01:00
|
|
|
#define IFLOCO(loco_id)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def IFLT(sensor_id,value)
|
|
|
|
* @brief
|
|
|
|
* @param sensor_id
|
|
|
|
* @param value
|
|
|
|
*/
|
2021-11-30 14:52:22 +01:00
|
|
|
#define IFLT(sensor_id,value)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def IFNOT(sensor_id)
|
|
|
|
* @brief
|
|
|
|
* @param sensor_id
|
|
|
|
*/
|
2021-11-27 12:29:26 +01:00
|
|
|
#define IFNOT(sensor_id)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def IFRANDOM(percent)
|
|
|
|
* @brief
|
|
|
|
* @param percent
|
|
|
|
*/
|
2021-12-29 12:15:31 +01:00
|
|
|
#define IFRANDOM(percent)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def IFRED(signal_id)
|
|
|
|
* @brief
|
|
|
|
* @param signal_id
|
|
|
|
*/
|
2022-04-17 10:58:32 +02:00
|
|
|
#define IFRED(signal_id)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def IFTHROWN(turnout_id)
|
|
|
|
* @brief
|
|
|
|
* @param turnout_id
|
|
|
|
*/
|
2021-12-29 12:15:31 +01:00
|
|
|
#define IFTHROWN(turnout_id)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def IFRESERVE(block)
|
|
|
|
* @brief
|
|
|
|
* @param block
|
|
|
|
*/
|
2021-11-27 12:29:26 +01:00
|
|
|
#define IFRESERVE(block)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def IFTIMEOUT
|
|
|
|
* @brief
|
|
|
|
*/
|
2022-01-03 11:15:10 +01:00
|
|
|
#define IFTIMEOUT
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def IFTTPOSITION(turntable_id,position)
|
|
|
|
* @brief
|
|
|
|
* @param turntable_id
|
|
|
|
* @param position
|
|
|
|
*/
|
2023-09-02 00:29:49 +02:00
|
|
|
#define IFTTPOSITION(turntable_id,position)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def IFRE(sensor_id,value)
|
|
|
|
* @brief
|
|
|
|
* @param sensor_id
|
|
|
|
* @param value
|
|
|
|
*/
|
2022-12-30 00:46:42 +01:00
|
|
|
#define IFRE(sensor_id,value)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def INVERT_DIRECTION
|
|
|
|
* @brief
|
|
|
|
*/
|
2021-11-27 12:29:26 +01:00
|
|
|
#define INVERT_DIRECTION
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def JMRI_SENSOR(vpin,count...)
|
|
|
|
* @brief
|
|
|
|
* @param vpin
|
|
|
|
* @param count...
|
|
|
|
*/
|
2024-02-07 23:11:27 +01:00
|
|
|
#define JMRI_SENSOR(vpin,count...)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def JOIN
|
|
|
|
* @brief
|
|
|
|
*/
|
2021-11-27 12:29:26 +01:00
|
|
|
#define JOIN
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def KILLALL
|
|
|
|
* @brief
|
|
|
|
*/
|
2022-03-31 22:52:43 +02:00
|
|
|
#define KILLALL
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def LATCH(sensor_id)
|
|
|
|
* @brief
|
|
|
|
* @param sensor_id
|
|
|
|
*/
|
2023-10-13 14:59:06 +02:00
|
|
|
#define LATCH(sensor_id)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def LCC(eventid)
|
|
|
|
* @brief
|
|
|
|
* @param eventid
|
|
|
|
*/
|
2023-10-13 14:59:06 +02:00
|
|
|
#define LCC(eventid)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def LCCX(senderid,eventid)
|
|
|
|
* @brief
|
|
|
|
* @param senderid
|
|
|
|
* @param eventid
|
|
|
|
*/
|
2023-10-13 14:59:06 +02:00
|
|
|
#define LCCX(senderid,eventid)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def LCD(row,msg)
|
|
|
|
* @brief
|
|
|
|
* @param row
|
|
|
|
* @param msg
|
|
|
|
*/
|
2023-02-11 16:47:50 +01:00
|
|
|
#define LCD(row,msg)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def SCREEN(display,row,msg)
|
|
|
|
* @brief
|
|
|
|
* @param display
|
|
|
|
* @param row
|
|
|
|
* @param msg
|
|
|
|
*/
|
2023-02-12 00:37:09 +01:00
|
|
|
#define SCREEN(display,row,msg)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def LCN(msg)
|
|
|
|
* @brief
|
|
|
|
* @param msg
|
|
|
|
*/
|
2021-11-27 12:29:26 +01:00
|
|
|
#define LCN(msg)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def MESSAGE(msg)
|
|
|
|
* @brief
|
|
|
|
* @param msg
|
|
|
|
*/
|
2024-03-08 21:33:11 +01:00
|
|
|
#define MESSAGE(msg)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def MOVETT(id,steps,activity)
|
|
|
|
* @brief
|
|
|
|
* @param id
|
|
|
|
* @param steps
|
|
|
|
* @param activity
|
|
|
|
*/
|
2022-08-13 22:48:03 +02:00
|
|
|
#define MOVETT(id,steps,activity)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def NEOPIXEL(id,r,g,b,count...)
|
|
|
|
* @brief
|
|
|
|
* @param id
|
|
|
|
* @param r
|
|
|
|
* @param g
|
|
|
|
* @param b
|
|
|
|
* @param count...
|
|
|
|
*/
|
2024-09-22 13:36:19 +02:00
|
|
|
#define NEOPIXEL(id,r,g,b,count...)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def NEOPIXEL_SIGNAL(sigid,redcolour,ambercolour,greencolour)
|
|
|
|
* @brief
|
|
|
|
* @param sigid
|
|
|
|
* @param redcolour
|
|
|
|
* @param ambercolour
|
|
|
|
* @param greencolour
|
|
|
|
*/
|
2024-09-22 13:36:19 +02:00
|
|
|
#define NEOPIXEL_SIGNAL(sigid,redcolour,ambercolour,greencolour)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def ACON(eventid)
|
|
|
|
* @brief
|
|
|
|
* @param eventid
|
|
|
|
*/
|
2024-06-13 14:01:33 +02:00
|
|
|
#define ACON(eventid)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def ACOF(eventid)
|
|
|
|
* @brief
|
|
|
|
* @param eventid
|
|
|
|
*/
|
2024-06-13 14:01:33 +02:00
|
|
|
#define ACOF(eventid)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def ONACON(eventid)
|
|
|
|
* @brief
|
|
|
|
* @param eventid
|
|
|
|
*/
|
2024-06-13 14:01:33 +02:00
|
|
|
#define ONACON(eventid)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def ONACOF(eventid)
|
|
|
|
* @brief
|
|
|
|
* @param eventid
|
|
|
|
*/
|
2024-06-13 14:01:33 +02:00
|
|
|
#define ONACOF(eventid)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def ONACTIVATE(addr,subaddr)
|
|
|
|
* @brief
|
|
|
|
* @param addr
|
|
|
|
* @param subaddr
|
|
|
|
*/
|
2021-11-27 12:29:26 +01:00
|
|
|
#define ONACTIVATE(addr,subaddr)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def ONACTIVATEL(linear)
|
|
|
|
* @brief
|
|
|
|
* @param linear
|
|
|
|
*/
|
2021-11-27 12:29:26 +01:00
|
|
|
#define ONACTIVATEL(linear)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def ONAMBER(signal_id)
|
|
|
|
* @brief
|
|
|
|
* @param signal_id
|
|
|
|
*/
|
2022-06-17 12:48:37 +02:00
|
|
|
#define ONAMBER(signal_id)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def ONTIME(value)
|
|
|
|
* @brief
|
|
|
|
* @param value
|
|
|
|
*/
|
2023-01-11 18:36:11 +01:00
|
|
|
#define ONTIME(value)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def ONCLOCKTIME(hours,mins)
|
|
|
|
* @brief
|
|
|
|
* @param hours
|
|
|
|
* @param mins
|
|
|
|
*/
|
2023-01-11 18:36:11 +01:00
|
|
|
#define ONCLOCKTIME(hours,mins)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def ONCLOCKMINS(mins)
|
|
|
|
* @brief
|
|
|
|
* @param mins
|
|
|
|
*/
|
2023-04-12 13:07:08 +02:00
|
|
|
#define ONCLOCKMINS(mins)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def ONOVERLOAD(track_id)
|
|
|
|
* @brief
|
|
|
|
* @param track_id
|
|
|
|
*/
|
2023-08-12 19:40:48 +02:00
|
|
|
#define ONOVERLOAD(track_id)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def ONDEACTIVATE(addr,subaddr)
|
|
|
|
* @brief
|
|
|
|
* @param addr
|
|
|
|
* @param subaddr
|
|
|
|
*/
|
2021-11-27 12:29:26 +01:00
|
|
|
#define ONDEACTIVATE(addr,subaddr)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def ONDEACTIVATEL(linear)
|
|
|
|
* @brief
|
|
|
|
* @param linear
|
|
|
|
*/
|
2021-11-27 12:29:26 +01:00
|
|
|
#define ONDEACTIVATEL(linear)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def ONCLOSE(turnout_id)
|
|
|
|
* @brief
|
|
|
|
* @param turnout_id
|
|
|
|
*/
|
2021-11-27 12:29:26 +01:00
|
|
|
#define ONCLOSE(turnout_id)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def ONLCC(sender,event)
|
|
|
|
* @brief
|
|
|
|
* @param sender
|
|
|
|
* @param event
|
|
|
|
*/
|
2023-10-13 14:59:06 +02:00
|
|
|
#define ONLCC(sender,event)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def ONGREEN(signal_id)
|
|
|
|
* @brief
|
|
|
|
* @param signal_id
|
|
|
|
*/
|
2022-06-17 12:48:37 +02:00
|
|
|
#define ONGREEN(signal_id)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def ONRED(signal_id)
|
|
|
|
* @brief
|
|
|
|
* @param signal_id
|
|
|
|
*/
|
2023-09-02 00:29:49 +02:00
|
|
|
#define ONRED(signal_id)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def ONROTATE(turntable_id)
|
|
|
|
* @brief
|
|
|
|
* @param turntable_id
|
|
|
|
*/
|
2023-09-02 00:29:49 +02:00
|
|
|
#define ONROTATE(turntable_id)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def ONTHROW(turnout_id)
|
|
|
|
* @brief
|
|
|
|
* @param turnout_id
|
|
|
|
*/
|
2021-11-27 12:29:26 +01:00
|
|
|
#define ONTHROW(turnout_id)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def ONCHANGE(sensor_id)
|
|
|
|
* @brief
|
|
|
|
* @param sensor_id
|
|
|
|
*/
|
2022-12-30 00:46:42 +01:00
|
|
|
#define ONCHANGE(sensor_id)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def ONSENSOR(sensor_id)
|
|
|
|
* @brief
|
|
|
|
* @param sensor_id
|
|
|
|
*/
|
2024-04-13 09:12:35 +02:00
|
|
|
#define ONSENSOR(sensor_id)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def ONBUTTON(sensor_id)
|
|
|
|
* @brief
|
|
|
|
* @param sensor_id
|
|
|
|
*/
|
2024-04-13 09:12:35 +02:00
|
|
|
#define ONBUTTON(sensor_id)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def PAUSE
|
|
|
|
* @brief
|
|
|
|
*/
|
2021-11-27 12:29:26 +01:00
|
|
|
#define PAUSE
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def PIN_TURNOUT(id,pin,description...)
|
|
|
|
* @brief
|
|
|
|
* @param id
|
|
|
|
* @param pin
|
|
|
|
* @param description...
|
|
|
|
*/
|
2021-11-27 12:29:26 +01:00
|
|
|
#define PIN_TURNOUT(id,pin,description...)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def PRINT(msg)
|
|
|
|
* @brief
|
|
|
|
* @param msg
|
|
|
|
*/
|
2021-11-27 12:29:26 +01:00
|
|
|
#define PRINT(msg)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def PARSE(msg)
|
|
|
|
* @brief
|
|
|
|
* @param msg
|
|
|
|
*/
|
2022-03-31 23:04:40 +02:00
|
|
|
#define PARSE(msg)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def PICKUP_STASH(id)
|
|
|
|
* @brief
|
|
|
|
* @param id
|
|
|
|
*/
|
2023-11-23 11:41:35 +01:00
|
|
|
#define PICKUP_STASH(id)
|
2023-04-20 00:16:32 +02:00
|
|
|
#ifndef DISABLE_PROG
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def POM(cv,value)
|
|
|
|
* @brief
|
|
|
|
* @param cv
|
|
|
|
* @param value
|
|
|
|
*/
|
2021-11-27 12:29:26 +01:00
|
|
|
#define POM(cv,value)
|
2023-04-20 00:16:32 +02:00
|
|
|
#endif
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def POWEROFF
|
|
|
|
* @brief
|
|
|
|
*/
|
2021-11-27 12:29:26 +01:00
|
|
|
#define POWEROFF
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def POWERON
|
|
|
|
* @brief
|
|
|
|
*/
|
2022-02-28 11:38:26 +01:00
|
|
|
#define POWERON
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def READ_LOCO
|
|
|
|
* @brief
|
|
|
|
*/
|
2021-11-27 12:29:26 +01:00
|
|
|
#define READ_LOCO
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def RED(signal_id)
|
|
|
|
* @brief
|
|
|
|
* @param signal_id
|
|
|
|
*/
|
2021-11-27 12:29:26 +01:00
|
|
|
#define RED(signal_id)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def RESERVE(blockid)
|
|
|
|
* @brief
|
|
|
|
* @param blockid
|
|
|
|
*/
|
2021-11-27 12:29:26 +01:00
|
|
|
#define RESERVE(blockid)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def RESET(pin,count...)
|
|
|
|
* @brief
|
|
|
|
* @param pin
|
|
|
|
* @param count...
|
|
|
|
*/
|
2024-11-05 13:23:06 +01:00
|
|
|
#define RESET(pin,count...)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def RESUME
|
|
|
|
* @brief
|
|
|
|
*/
|
2021-11-27 12:29:26 +01:00
|
|
|
#define RESUME
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def RETURN
|
|
|
|
* @brief
|
|
|
|
*/
|
2021-11-27 12:29:26 +01:00
|
|
|
#define RETURN
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def REV(speed)
|
|
|
|
* @brief
|
|
|
|
* @param speed
|
|
|
|
*/
|
2021-11-27 12:29:26 +01:00
|
|
|
#define REV(speed)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def ROTATE(turntable_id,position,activity)
|
|
|
|
* @brief
|
|
|
|
* @param turntable_id
|
|
|
|
* @param position
|
|
|
|
* @param activity
|
|
|
|
*/
|
2023-09-02 00:29:49 +02:00
|
|
|
#define ROTATE(turntable_id,position,activity)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def ROTATE_DCC(turntable_id,position)
|
|
|
|
* @brief
|
|
|
|
* @param turntable_id
|
|
|
|
* @param position
|
|
|
|
*/
|
2023-09-08 23:22:10 +02:00
|
|
|
#define ROTATE_DCC(turntable_id,position)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def ROSTER(cab,name,funcmap...)
|
|
|
|
* @brief
|
|
|
|
* @param cab
|
|
|
|
* @param name
|
|
|
|
* @param funcmap...
|
|
|
|
*/
|
2021-12-26 19:24:04 +01:00
|
|
|
#define ROSTER(cab,name,funcmap...)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def ROUTE(id,description)
|
|
|
|
* @brief
|
|
|
|
* @param id
|
|
|
|
* @param description
|
|
|
|
*/
|
2023-09-02 00:29:49 +02:00
|
|
|
#define ROUTE(id,description)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def ROUTE_ACTIVE(id)
|
|
|
|
* @brief
|
|
|
|
* @param id
|
|
|
|
*/
|
2023-11-07 17:27:26 +01:00
|
|
|
#define ROUTE_ACTIVE(id)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def ROUTE_INACTIVE(id)
|
|
|
|
* @brief
|
|
|
|
* @param id
|
|
|
|
*/
|
2023-11-07 17:27:26 +01:00
|
|
|
#define ROUTE_INACTIVE(id)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def ROUTE_HIDDEN(id)
|
|
|
|
* @brief
|
|
|
|
* @param id
|
|
|
|
*/
|
2023-11-07 17:27:26 +01:00
|
|
|
#define ROUTE_HIDDEN(id)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def ROUTE_DISABLED(id)
|
|
|
|
* @brief
|
|
|
|
* @param id
|
|
|
|
*/
|
2023-11-17 11:45:36 +01:00
|
|
|
#define ROUTE_DISABLED(id)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def ROUTE_CAPTION(id,caption)
|
|
|
|
* @brief
|
|
|
|
* @param id
|
|
|
|
* @param caption
|
|
|
|
*/
|
2023-11-07 17:27:26 +01:00
|
|
|
#define ROUTE_CAPTION(id,caption)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def SENDLOCO(cab,route)
|
|
|
|
* @brief
|
|
|
|
* @param cab
|
|
|
|
* @param route
|
|
|
|
*/
|
2021-11-27 12:29:26 +01:00
|
|
|
#define SENDLOCO(cab,route)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def SEQUENCE(id)
|
|
|
|
* @brief
|
|
|
|
* @param id
|
|
|
|
*/
|
2021-11-27 12:29:26 +01:00
|
|
|
#define SEQUENCE(id)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def SERIAL(msg)
|
|
|
|
* @brief
|
|
|
|
* @param msg
|
|
|
|
*/
|
2021-11-27 12:29:26 +01:00
|
|
|
#define SERIAL(msg)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def SERIAL1(msg)
|
|
|
|
* @brief
|
|
|
|
* @param msg
|
|
|
|
*/
|
2021-11-27 12:29:26 +01:00
|
|
|
#define SERIAL1(msg)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def SERIAL2(msg)
|
|
|
|
* @brief
|
|
|
|
* @param msg
|
|
|
|
*/
|
2021-11-27 12:29:26 +01:00
|
|
|
#define SERIAL2(msg)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def SERIAL3(msg)
|
|
|
|
* @brief
|
|
|
|
* @param msg
|
|
|
|
*/
|
2021-11-27 12:29:26 +01:00
|
|
|
#define SERIAL3(msg)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def SERIAL4(msg)
|
|
|
|
* @brief
|
|
|
|
* @param msg
|
|
|
|
*/
|
2022-12-16 14:14:48 +01:00
|
|
|
#define SERIAL4(msg)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def SERIAL5(msg)
|
|
|
|
* @brief
|
|
|
|
* @param msg
|
|
|
|
*/
|
2022-12-16 14:14:48 +01:00
|
|
|
#define SERIAL5(msg)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def SERIAL6(msg)
|
|
|
|
* @brief
|
|
|
|
* @param msg
|
|
|
|
*/
|
2022-12-16 14:14:48 +01:00
|
|
|
#define SERIAL6(msg)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def SERVO(id,position,profile)
|
|
|
|
* @brief
|
|
|
|
* @param id
|
|
|
|
* @param position
|
|
|
|
* @param profile
|
|
|
|
*/
|
2021-11-27 12:29:26 +01:00
|
|
|
#define SERVO(id,position,profile)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def SERVO2(id,position,duration)
|
|
|
|
* @brief
|
|
|
|
* @param id
|
|
|
|
* @param position
|
|
|
|
* @param duration
|
|
|
|
*/
|
2021-11-27 12:29:26 +01:00
|
|
|
#define SERVO2(id,position,duration)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def SERVO_SIGNAL(vpin,redpos,amberpos,greenpos)
|
|
|
|
* @brief
|
|
|
|
* @param vpin
|
|
|
|
* @param redpos
|
|
|
|
* @param amberpos
|
|
|
|
* @param greenpos
|
|
|
|
*/
|
2022-02-06 14:56:51 +01:00
|
|
|
#define SERVO_SIGNAL(vpin,redpos,amberpos,greenpos)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def SERVO_TURNOUT(id,pin,activeAngle,inactiveAngle,profile,description...)
|
|
|
|
* @brief
|
|
|
|
* @param id
|
|
|
|
* @param pin
|
|
|
|
* @param activeAngle
|
|
|
|
* @param inactiveAngle
|
|
|
|
* @param profile
|
|
|
|
* @param description...
|
|
|
|
*/
|
2021-11-27 12:29:26 +01:00
|
|
|
#define SERVO_TURNOUT(id,pin,activeAngle,inactiveAngle,profile,description...)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def SET(pin,count...)
|
|
|
|
* @brief
|
|
|
|
* @param pin
|
|
|
|
* @param count...
|
|
|
|
*/
|
2024-11-05 13:23:06 +01:00
|
|
|
#define SET(pin,count...)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def SET_TRACK(track,mode)
|
|
|
|
* @brief
|
|
|
|
* @param track
|
|
|
|
* @param mode
|
|
|
|
*/
|
2022-03-19 17:26:29 +01:00
|
|
|
#define SET_TRACK(track,mode)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def SET_POWER(track,onoff)
|
|
|
|
* @brief
|
|
|
|
* @param track
|
|
|
|
* @param onoff
|
|
|
|
*/
|
2023-09-24 16:40:42 +02:00
|
|
|
#define SET_POWER(track,onoff)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def SETLOCO(loco)
|
|
|
|
* @brief
|
|
|
|
* @param loco
|
|
|
|
*/
|
2021-11-27 12:29:26 +01:00
|
|
|
#define SETLOCO(loco)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def SETFREQ(freq)
|
|
|
|
* @brief
|
|
|
|
* @param freq
|
|
|
|
*/
|
2024-07-10 10:57:03 +02:00
|
|
|
#define SETFREQ(freq)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def SIGNAL(redpin,amberpin,greenpin)
|
|
|
|
* @brief
|
|
|
|
* @param redpin
|
|
|
|
* @param amberpin
|
|
|
|
* @param greenpin
|
|
|
|
*/
|
2021-11-27 12:29:26 +01:00
|
|
|
#define SIGNAL(redpin,amberpin,greenpin)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def SIGNALH(redpin,amberpin,greenpin)
|
|
|
|
* @brief
|
|
|
|
* @param redpin
|
|
|
|
* @param amberpin
|
|
|
|
* @param greenpin
|
|
|
|
*/
|
2022-03-18 14:46:07 +01:00
|
|
|
#define SIGNALH(redpin,amberpin,greenpin)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def SPEED(speed)
|
|
|
|
* @brief
|
|
|
|
* @param speed
|
|
|
|
*/
|
2021-11-27 12:29:26 +01:00
|
|
|
#define SPEED(speed)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def START(route)
|
|
|
|
* @brief
|
|
|
|
* @param route
|
|
|
|
*/
|
2023-11-23 11:41:35 +01:00
|
|
|
#define START(route)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def STASH(id)
|
|
|
|
* @brief
|
|
|
|
* @param id
|
|
|
|
*/
|
2023-11-23 11:41:35 +01:00
|
|
|
#define STASH(id)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def STEALTH(code...)
|
|
|
|
* @brief
|
|
|
|
* @param code...
|
|
|
|
*/
|
2023-11-30 12:32:39 +01:00
|
|
|
#define STEALTH(code...)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def STEALTH_GLOBAL(code...)
|
|
|
|
* @brief
|
|
|
|
* @param code...
|
|
|
|
*/
|
2024-04-09 21:45:28 +02:00
|
|
|
#define STEALTH_GLOBAL(code...)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def STOP
|
|
|
|
* @brief
|
|
|
|
*/
|
2021-11-27 12:29:26 +01:00
|
|
|
#define STOP
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def THROW(id)
|
|
|
|
* @brief
|
|
|
|
* @param id
|
|
|
|
*/
|
2023-09-02 00:29:49 +02:00
|
|
|
#define THROW(id)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def TOGGLE_TURNOUT(id)
|
|
|
|
* @brief
|
|
|
|
* @param id
|
|
|
|
*/
|
2024-04-09 21:45:28 +02:00
|
|
|
#define TOGGLE_TURNOUT(id)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def TT_ADDPOSITION(turntable_id,position,value,angle,description...)
|
|
|
|
* @brief
|
|
|
|
* @param turntable_id
|
|
|
|
* @param position
|
|
|
|
* @param value
|
|
|
|
* @param angle
|
|
|
|
* @param description...
|
|
|
|
*/
|
2023-09-08 23:22:10 +02:00
|
|
|
#define TT_ADDPOSITION(turntable_id,position,value,angle,description...)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def TURNOUT(id,addr,subaddr,description...)
|
|
|
|
* @brief
|
|
|
|
* @param id
|
|
|
|
* @param addr
|
|
|
|
* @param subaddr
|
|
|
|
* @param description...
|
|
|
|
*/
|
2021-11-27 12:29:26 +01:00
|
|
|
#define TURNOUT(id,addr,subaddr,description...)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def TURNOUTL(id,addr,description...)
|
|
|
|
* @brief
|
|
|
|
* @param id
|
|
|
|
* @param addr
|
|
|
|
* @param description...
|
|
|
|
*/
|
2023-04-08 18:22:39 +02:00
|
|
|
#define TURNOUTL(id,addr,description...)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def UNJOIN
|
|
|
|
* @brief
|
|
|
|
*/
|
2021-11-27 12:29:26 +01:00
|
|
|
#define UNJOIN
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def UNLATCH(sensor_id)
|
|
|
|
* @brief
|
|
|
|
* @param sensor_id
|
|
|
|
*/
|
2021-11-27 12:29:26 +01:00
|
|
|
#define UNLATCH(sensor_id)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def VIRTUAL_SIGNAL(id)
|
|
|
|
* @brief
|
|
|
|
* @param id
|
|
|
|
*/
|
2022-06-18 13:31:54 +02:00
|
|
|
#define VIRTUAL_SIGNAL(id)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def VIRTUAL_TURNOUT(id,description...)
|
|
|
|
* @brief
|
|
|
|
* @param id
|
|
|
|
* @param description...
|
|
|
|
*/
|
2022-03-24 12:56:06 +01:00
|
|
|
#define VIRTUAL_TURNOUT(id,description...)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def WAITFOR(pin)
|
|
|
|
* @brief
|
|
|
|
* @param pin
|
|
|
|
*/
|
2021-11-27 12:29:26 +01:00
|
|
|
#define WAITFOR(pin)
|
2023-09-06 23:58:19 +02:00
|
|
|
#ifndef IO_NO_HAL
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def WAITFORTT(turntable_id)
|
|
|
|
* @brief
|
|
|
|
* @param turntable_id
|
|
|
|
*/
|
2023-09-06 23:58:19 +02:00
|
|
|
#define WAITFORTT(turntable_id)
|
|
|
|
#endif
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def WITHROTTLE(msg)
|
|
|
|
* @brief
|
|
|
|
* @param msg
|
|
|
|
*/
|
2023-05-01 15:25:45 +02:00
|
|
|
#define WITHROTTLE(msg)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def XFOFF(cab,func)
|
|
|
|
* @brief
|
|
|
|
* @param cab
|
|
|
|
* @param func
|
|
|
|
*/
|
2021-11-27 12:29:26 +01:00
|
|
|
#define XFOFF(cab,func)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def XFON(cab,func)
|
|
|
|
* @brief
|
|
|
|
* @param cab
|
|
|
|
* @param func
|
|
|
|
*/
|
2021-11-27 12:29:26 +01:00
|
|
|
#define XFON(cab,func)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def XFTOGGLE(cab,func)
|
|
|
|
* @brief
|
|
|
|
* @param cab
|
|
|
|
* @param func
|
|
|
|
*/
|
2024-04-09 21:45:28 +02:00
|
|
|
#define XFTOGGLE(cab,func)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def XFWD(cab,speed)
|
|
|
|
* @brief
|
|
|
|
* @param cab
|
|
|
|
* @param speed
|
|
|
|
*/
|
2025-01-09 20:40:07 +01:00
|
|
|
#define XFWD(cab,speed)
|
2025-02-02 13:29:12 +01:00
|
|
|
/**
|
|
|
|
* @def XREV(cab,speed)
|
|
|
|
* @brief
|
|
|
|
* @param cab
|
|
|
|
* @param speed
|
|
|
|
*/
|
2025-01-09 20:40:07 +01:00
|
|
|
#define XREV(cab,speed)
|
2024-04-09 21:45:28 +02:00
|
|
|
|
2021-11-27 12:29:26 +01:00
|
|
|
#endif
|