20#include "platform/platform.h"
22#if DEVICE_PORTIN || defined(DOXYGEN_ONLY)
24#include "hal/port_api.h"
66 PortIn(PortName port,
int mask = 0xFFFFFFFF);
A multiple pin digital input.
PortIn(PortName port, int mask=0xFFFFFFFF)
Create a PortIn, connected to the specified port.
void mode(PinMode mode)
Set the input pin mode.
int read()
Read the value input to the port.
int port_read(port_t *obj)
Read the current value on the port.
struct port_s port_t
Port HAL structure.