HydraFW HydraNFC v2 guide dnfc Trigger - hydrabus/hydrafw_hydranfc_shield_v2 GitHub Wiki
HydraFW HydraNFC Shield v2 SPI2 Trigger
This guide is updated towards firmware release HydraBus v1 HydraNFC Shield v2 firmware v0.1 Beta (HydraFW (HydraBus v1/HydraNFC Shield v2) v0.1-beta-50-g550cc50-dirty 2020-08-26)
The trigger command allows the Hydrabus to be used as an external trigger (For an oscilloscope for instance).
When started, the trigger will continuously read data on the current protocol. If the data set by the filter is matched, it will output a high state on the PB3 pin.
Configuration syntax
-
showShow current trigger parameters -
filterwith freeform string. Sets the trigger data -
startto run the trigger
Configuration example
Set trigger on SPI2, using "Hello world\n" :
dnfc2> trigger filter "Hello world\x0a"
Current trigger data :
48 65 6C 6C 6F 20 77 6F 72 6C 64 0A | Hello world.
dnfc2> trigger show
Current trigger data :
48 65 6C 6C 6F 20 77 6F 72 6C 64 0A | Hello world.
uart1> trigger start