20#include "platform/platform.h"
21#include "drivers/DigitalIn.h"
22#include "rtos/Mutex.h"
23#include "platform/NonCopyable.h"
64 BusIn(PinName p0, PinName p1 = NC, PinName p2 = NC, PinName p3 = NC,
65 PinName p4 = NC, PinName p5 = NC, PinName p6 = NC, PinName p7 = NC,
66 PinName p8 = NC, PinName p9 = NC, PinName p10 = NC, PinName p11 = NC,
67 PinName p12 = NC, PinName p13 = NC, PinName p14 = NC, PinName p15 = NC);
113#if !defined(DOXYGEN_ONLY)
127 virtual void unlock();
A digital input bus, used for reading the state of a collection of pins.
void mode(PinMode pull)
Set the input pin mode.
BusIn(PinName pins[16])
Create an BusIn, connected to the specified pins.
BusIn(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 BusIn, 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...
DigitalIn & operator[](int index)
Access to particular bit in random-iterator fashion.
int read()
Read the value of the input bus.
A digital input, used for reading 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.