17#ifndef MBED_PORTINOUT_H
18#define MBED_PORTINOUT_H
20#include "platform/platform.h"
22#if DEVICE_PORTINOUT || defined(DOXYGEN_ONLY)
24#include "hal/port_api.h"
A multiple pin digital in/out used to set/read multiple bi-directional pins.
void write(int value)
Write the value to the output port.
PortInOut(PortName port, int mask=0xFFFFFFFF)
Create an PortInOut, connected to the specified port.
void mode(PinMode mode)
Set the input pin mode.
void output()
Set as an output.
PortInOut & operator=(int value)
A shorthand for write()
int read()
Read the value currently output on the port.
void input()
Set as an input.
int port_read(port_t *obj)
Read the current value on the port.
void port_write(port_t *obj, int value)
Write value to the port.
struct port_s port_t
Port HAL structure.