17 #ifndef MBED_BUSINOUT_H 18 #define MBED_BUSINOUT_H 20 #include "drivers/DigitalInOut.h" 21 #include "platform/PlatformMutex.h" 22 #include "platform/NonCopyable.h" 62 BusInOut(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);
83 void write(
int value);
104 void mode(PinMode pull);
135 #if !defined(DOXYGEN_ONLY) 137 virtual void unlock();
DigitalInOut & operator[](int index)
Access to particular bit in random-iterator fashion.
A digital input output bus, used for setting the state of a collection of pins.
int mask()
Binary mask of bus pins connected to actual pins (not NC pins) If bus pin is in NC state make corresp...
void input()
Set all the pins in bus as an input.
A digital input/output, used for setting or reading a bi-directional pin.
Prevents generation of copy constructor and copy assignment operator in derived classes.
void output()
Set all the pins in bus as output.
BusInOut(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 a BusInOut, connected to the specified pins.
void mode(PinMode pull)
Set the input pin mode for all the pins in bus.
void write(int value)
Write the value to the output bus.
int read()
Read the value currently output on the bus.
BusInOut & operator=(int v)
A shorthand for write()