Driver of ST X-NUCLEO-OUT01A1 Industrial Digital output expansion board based on ISO8200BQ component.

Dependents:   HelloWorld_OUT01A1

Embed: (wiki syntax)

« Back to documentation index

XNucleoOUT01A1 Class Reference

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_modeControl mode, direct or sync.
CTL_MODE_PINControl mode pin, if connected then jumper J4 overrides ctl_mode parameter
OUT_ENOutput enable pin.
N_SYNCInput-to-output synchronization signal. Active low.
N_LOADLoad input data signal. Active low.
INxChannel 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:
enableEnable 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_valuesBitmask 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_valuesBitmask of input values, bit x represents INx pin's value

Definition at line 129 of file XNucleoOUT01A1.cpp.