To get sys interface syntax
- Enter echo help(h) to the sys interface to obtain the format for the parameters to be provided in
dmesg
.
echo h > /sys/devices/platform/c320000.mttcan/net/can1/gfc_filter
The following is an example response from this command.
usage:anfs=0..3 anfe=0..3 rrfs=0/1 rrfe=0/1
All fields in this register are unsigned integers.
For example:
echo "anfs=2 anfe=2 rrfs=0 rrfe=0" > /sys/devices/platform/c320000.mttcan/net/can1/gfc_filter