Package org.deepjava.flink.subdevices
Class FlinkCounter
- java.lang.Object
- 
- org.deepjava.flink.subdevices.FlinkCounter
 
- 
- All Implemented Interfaces:
- FlinkDefinitions
 
 public class FlinkCounter extends Object implements FlinkDefinitions The flink counter subdevice realizes counter function within a flink device. Notably, it can be used for quadrature decoding. It offers several channels.- Author:
- Urs Graf
 
- 
- 
Field SummaryFields Modifier and Type Field Description FlinkSubDevicedevHandle to the subdevice within our flink device- 
Fields inherited from interface org.deepjava.flink.core.FlinkDefinitionsANALOG_INPUT_INTERFACE_ID, ANALOG_OUTPUT_INTERFACE_ID, CHANNEL_OFFSET, COUNTER_INTERFACE_ID, GPIO_INTERFACE_ID, HEADER_SIZE, INFO_DEVICE_ID, INFO_DEVICE_SIZE, INTERFACE_TYPE_MASK, MOD_CONF_OFFSET, MOD_STATUS_OFFSET, PPWA_INTERFACE_ID, PWM_INTERFACE_ID, REGISTER_WIDTH, REGISTER_WIDTH_BIT, SIZE_OFFSET, SUBHEADER_SIZE, TOTAL_HEADER_SIZE, TYPE_OFFSET, UART_INTERFACE_ID, UNIQUE_ID_OFFSET, WD_INTERFACE_ID
 
- 
 - 
Constructor SummaryConstructors Constructor Description FlinkCounter(FlinkSubDevice dev)Create a flink counter subdevice.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description shortgetCount(int channel)Returns the counter value.voidreset()Resets the counter subdevice with all channels.
 
- 
- 
- 
Field Detail- 
devpublic FlinkSubDevice dev Handle to the subdevice within our flink device
 
- 
 - 
Constructor Detail- 
FlinkCounterpublic FlinkCounter(FlinkSubDevice dev) Create a flink counter subdevice.- Parameters:
- dev- subdevice in a flink device which implements the counter functionality
 
 
- 
 
-