Driver of ST X-NUCLEO-OUT01A1 Industrial Digital output expansion board based on ISO8200BQ component.
Dependents: HelloWorld_OUT01A1
XNucleoOUT01A1 Class Reference
Abstract class of X-NUCLEO_OUT01A1 Expansion Board. More...
#include <XNucleoOUT01A1.h>
Public Member Functions | |
XNucleoOUT01A1 (control_mode_t ctl_mode=mode_direct, PinName CTL_MODE_PIN=NC, PinName OUT_EN=A3, PinName N_SYNC=A4, PinName N_LOAD=A5, PinName IN1=A0, PinName IN2=A1, PinName IN3=NC, PinName IN4=A2, PinName IN5=D5, PinName IN6=D4, PinName IN7=D14, PinName IN8=D15) | |
Constructor. | |
void | set_inputs (uint8_t input_values) |
Set input status, also loaded into input buffer when in sync mode. | |
void | update_outputs (void) |
Update output status according to input buffer when in sync mode. | |
void | enable_outputs (bool enable) |
Enable outputs. |
Detailed Description
Abstract class of X-NUCLEO_OUT01A1 Expansion Board.
Default reflecting STM32 Nucleos pinout.
Definition at line 64 of file XNucleoOUT01A1.h.
Constructor & Destructor Documentation
XNucleoOUT01A1 | ( | control_mode_t | ctl_mode = mode_direct , |
PinName | CTL_MODE_PIN = NC , |
||
PinName | OUT_EN = A3 , |
||
PinName | N_SYNC = A4 , |
||
PinName | N_LOAD = A5 , |
||
PinName | IN1 = A0 , |
||
PinName | IN2 = A1 , |
||
PinName | IN3 = NC , |
||
PinName | IN4 = A2 , |
||
PinName | IN5 = D5 , |
||
PinName | IN6 = D4 , |
||
PinName | IN7 = D14 , |
||
PinName | IN8 = D15 |
||
) |
Constructor.
- Parameters:
-
ctl_mode Control mode, direct or sync. CTL_MODE_PIN Control mode pin, if connected then jumper J4 overrides ctl_mode parameter OUT_EN Output enable pin. N_SYNC Input-to-output synchronization signal. Active low. N_LOAD Load input data signal. Active low. INx Channel x input pin, NC if not connected
Definition at line 57 of file XNucleoOUT01A1.cpp.
Member Function Documentation
void enable_outputs | ( | bool | enable ) |
Enable outputs.
- Parameters:
-
enable Enable outputs when true, disable otherwise.
Definition at line 99 of file XNucleoOUT01A1.cpp.
void set_inputs | ( | uint8_t | input_values ) |
Set input status, also loaded into input buffer when in sync mode.
- Parameters:
-
input_values Bitmask of input values, bit x represents INx pin's value
Definition at line 109 of file XNucleoOUT01A1.cpp.
void update_outputs | ( | void | ) |
Update output status according to input buffer when in sync mode.
- Parameters:
-
input_values Bitmask of input values, bit x represents INx pin's value
Definition at line 129 of file XNucleoOUT01A1.cpp.
Generated on Tue Jul 12 2022 20:17:02 by 1.7.2