MX Foundation 4
|
All discrete lines have edge detection capability. Active lines and edge polarity (rising or falling edges) are selectable line by line using a mask value. When a selected line changes in the selected direction, a corresponding bit is set in an edge detection field.
Sampling mode does not use the edge detection functionnality, it simply returns the current lines state in the FIFO at each sampling period.
Two types of access are defined for the software support of the discrete devices.
Both types of access use a port mask value to define on which line(s) the operation takes place.
MXF_FLEXDIO_DATAREC.edge
and MXF_FLEXDIO_SAMPREC.edge
specify the mask.