The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.
Dependents: hello SerialTestv11 SerialTestv12 Sierpinski ... more
mbed 2
This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.
Diff: drivers/PortOut.h
- Revision:
- 171:3a7713b1edbc
- Parent:
- 170:e95d10626187
- Child:
- 172:65be27845400
--- a/drivers/PortOut.h Thu Sep 06 13:39:34 2018 +0100 +++ b/drivers/PortOut.h Thu Nov 08 11:45:42 2018 +0000 @@ -25,7 +25,7 @@ namespace mbed { /** \addtogroup drivers */ -/** A multiple pin digital out +/** A multiple pin digital output * * @note Synchronization level: Interrupt safe * @@ -54,10 +54,10 @@ class PortOut { public: - /** Create an PortOut, connected to the specified port + /** Create a PortOut, connected to the specified port * - * @param port Port to connect to (Port0-Port5) - * @param mask A bitmask to identify which bits in the port should be included (0 - ignore) + * @param port Port to connect to (as defined in target's PortNames.h) + * @param mask Bitmask defines which port pins are an output (0 - ignore, 1 - include) */ PortOut(PortName port, int mask = 0xFFFFFFFF) { @@ -78,7 +78,7 @@ /** Read the value currently output on the port * * @returns - * An integer with each bit corresponding to associated PortOut pin setting + * An integer with each bit corresponding to associated pin value */ int read() {