/*UVOS*/ /* This file is part of UsbLedController. * * TelemetrySystem is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License (LGPL) version 3 as published by * the Free Software Foundation. * * TelemetrySystem 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with TelemetrySystem. If not, see . */ #ifndef WRITEPIN_H #define WRITEPIN_H #include #include void writePin(volatile unsigned char * const port, const unsigned char pin, const bool state); void setBit( volatile unsigned char * const reg, const unsigned char bit, const bool value ); void setDirection( volatile unsigned char * const portDirReg, const unsigned char pin, const bool makeOutput ); bool readPin( volatile const unsigned char * const inPort, const unsigned char pin); #endif