20#include "drivers/DigitalOut.h"
21#include "rtos/Mutex.h"
22#include "platform/NonCopyable.h"
62 BusOut(PinName p0, PinName p1 = NC, PinName p2 = NC, PinName p3 = NC,
63 PinName p4 = NC, PinName p5 = NC, PinName p6 = NC, PinName p7 = NC,
64 PinName p8 = NC, PinName p9 = NC, PinName p10 = NC, PinName p11 = NC,
65 PinName p12 = NC, PinName p13 = NC, PinName p14 = NC, PinName p15 = NC);
115#if !defined(DOXYGEN_ONLY)
118 virtual void unlock();
A digital output bus, used for setting the state of a collection of pins.
BusOut(PinName pins[16])
Create an BusOut, connected to the specified pins.
void write(int value)
Write the value to the output bus.
BusOut(PinName p0, PinName p1=NC, PinName p2=NC, PinName p3=NC, PinName p4=NC, PinName p5=NC, PinName p6=NC, PinName p7=NC, PinName p8=NC, PinName p9=NC, PinName p10=NC, PinName p11=NC, PinName p12=NC, PinName p13=NC, PinName p14=NC, PinName p15=NC)
Create an BusOut, connected to the specified pins.
int mask()
Binary mask of bus pins connected to actual pins (not NC pins) If bus pin is in NC state make corresp...
int read()
Read the value currently output on the bus.
DigitalOut & operator[](int index)
Access to particular bit in random-iterator fashion.
BusOut & operator=(int v)
A shorthand for write()
A digital output, used for setting the state of a pin.
Prevents generation of copy constructor and copy assignment operator in derived classes.
The Mutex class is used to synchronize the execution of threads.