THW-Funk-Audio-Switch/Programm/Audio-Switch/io/ports/portc.hpp

40 lines
570 B
C++
Raw Normal View History

2020-10-19 18:16:51 +02:00
/*
* portc.cpp
*
* Created: 19.10.2020 17:46:58
* Author: netz
*/
#ifndef BLUBBLIB_PORTC_HPP
#define BLUBBLIB_PORTC_HPP
#include <avr/io.h>
namespace blubblib {
struct portc {
static uint8_t Port() {
return PORTC;
}
static void Port(uint8_t v) {
PORTC = v;
}
static uint8_t Pin() {
return PINC;
}
static void Pin(uint8_t v) {
PINC = v;
}
static uint8_t Dir() {
return DDRC;
}
static void Dir(uint8_t v) {
DDRC = v;
}
};
}
#endif