COSA
An Object-Oriented Platform for Arduino Programming
Pin.hh File Reference
#include "Cosa/Types.h"
#include "Cosa/Bits.h"
#include "Cosa/IOStream.hh"
Include dependency graph for Pin.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Pin
 

Macros

#define asserted(pin)   for (uint8_t __i = (pin.toggle(), 1); __i != 0; __i--, pin.toggle())
 

Detailed Description

Version
1.0

License

Copyright (C) 2012-2015, Mikael Patel

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

This file is part of the Arduino Che Cosa project.

Definition in file Pin.hh.

Macro Definition Documentation

#define asserted (   pin)    for (uint8_t __i = (pin.toggle(), 1); __i != 0; __i--, pin.toggle())

Syntactic sugar for an asserted block. The given pin will be toggled. Initiating the pin to zero(0) will give active high logic.

Parameters
[in]pinto assert.

Definition at line 275 of file Pin.hh.