Component: Input Digital Pin (DSP)
Author | Matrix Ltd |
Version | 1.2 (Release) |
Category | DSP |
Contents
Input Digital Pin component
Allows the values from a buffer to be assigned from a digital input pin. The input values for high and low state can be assigned using properties.
Examples
No additional examples
Downloadable macro reference
SamplePin
Reads the value on the selected pin and based on the state outputs a value to the DSP buffer.
Parameters
- This macro has no parameters
Return value
- This call does not return a value
Simulation macro reference
This component does not contain any simulation macros
Property reference
Buffer Size
This property is of type Unsigned integer and can be referenced with the variable name BuffSize.
Number of individual elements the buffer can store, default 1.
Buffer Type
This property is of type Fixed list of ints and can be referenced with the variable name BuffType.
Sets the buffer data type, data is automatically scaled to fit and make full use of the data type.
Pin Connection
This property is of type Single digital pin and can be referenced with the variable name Pin.
Pin which is sampled to provide the DSP input to the buffer.
High Value
This property is of type Unsigned integer and can be referenced with the variable name HighVal.
Value to write to the buffer when the pin is in the high state.
Low Value
This property is of type Unsigned integer and can be referenced with the variable name LowVal.
Value to write to the buffer when the pin is in the low state.