end

xod/uart/end

No description
end
@/end
UART@/uart
An UART object
UPDpulse
End UART communication
end
UART
UPD
DONE
DONEpulse
Pulses when UART communication ended

C++ implementation

#pragma XOD evaluate_on_pin disable
#pragma XOD evaluate_on_pin enable input_UPD

node {
    void evaluate(Context ctx) {
        if (!isInputDirty<input_UPD>(ctx))
            return;

        auto uart = getValue<input_UART>(ctx);
        uart->end();
        emitValue<output_DONE>(ctx, 1);
    }
}