Machinekit

Machinekit

Machinekit Documentation

HAL Component — EDGE

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

edge — Edge detector

SYNOPSIS

edge

USAGE SYNOPSIS

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

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

FUNCTIONS

edge.N.funct ( OR <newinstname>.funct )

Produce output pulses from input edges

PINS

edge.N.in bit in ( OR <newinstname>.in bit in )

edge.N.out bit out ( OR <newinstname>.out bit out ) - Goes high when the desired edge is seen on 'in'

edge.N.out-invert bit out ( OR <newinstname>.out-invert bit out ) - Goes low when the desired edge is seen on 'in'

edge.N.both bit io (default: false) ( OR <newinstname>.both bit io (default: false) ) - If true, selects both edges. Otherwise, selects one edge according to in-edge

edge.N.in-edge bit io (default: true) ( OR <newinstname>.in-edge bit io (default: true) ) - If both is false, selects the one desired edge: true means falling, false means rising

edge.N.out-width-ns s32 io (default: 0) ( OR <newinstname>.out-width-ns s32 io (default: 0) ) - Time in nanoseconds of the output pulse

edge.N.time-left-ns s32 out ( OR <newinstname>.time-left-ns s32 out ) - Time left in this output pulse

edge.N.last-in bit out ( OR <newinstname>.last-in bit out ) - Previous input value

LICENCE

GPL