Machinekit

Machinekit

Machinekit Documentation

HAL Component — WATCHDOG

INSTANTIABLE COMPONENTS — General

All instantiable components can be loaded in two manners

Using loadrt with or without count= | names= parameters as per legacy components
Using newinst, which names the instance and allows further parameters and arguments
primarily pincount= which can set the number of pins created for that instance (where applicable)

NAME

watchdog — Input watchdog for Machinekit HAL

SYNOPSIS

watchdog

USAGE SYNOPSIS

loadrt watchdog
OR
newinst watchdog <newinstname> [ pincount=N | iprefix=prefix ] [instanceparamX=X | argX=X ]

( args in [ ] denote possible args and parameters, may not be used in all components )

FUNCTIONS

watchdog.N.process.funct ( OR <newinstname>.process.funct (requires a floating-point thread) )

watchdog.N.set-timeouts.funct ( OR <newinstname>.set-timeouts.funct (requires a floating-point thread) )

PINS

watchdog.N.input-%02d bit in (MM=00..pincount) ( OR <newinstname>.input-%02d bit in (MM=00..pincount) ) - the input bit HAL pin

watchdog.N.ok-out bit out (default: false) ( OR <newinstname>.ok-out bit out (default: false) ) - high if all inputs are toggling, low otherwise

watchdog.N.enable-in bit in (default: false) ( OR <newinstname>.enable-in bit in (default: false) ) - only runs while this is high

watchdog.N.timeout-%02d float io (MM=00..pincount) ( OR <newinstname>.timeout-%02d float io (MM=00..pincount) ) - maximum allowed timeb without transition

INST_PARAMETERS

pincount int (default: 1) - Index used by all arrays of pins and variables

AUTHOR

Stephen Wille Padnos - converted to icomp by ArcEye

LICENCE

GPL