ATmega328p
Hardware definitions
Loading...
Searching...
No Matches
Pin.h File Reference

Logical GPIO pin and port identifiers. More...

#include <stdint.h>
#include "Config.h"
Include dependency graph for Pin.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  atmega328p
 Device-specific definitions for the ATmega328P.
namespace  atmega328p::pin
 Logical pin and alternate-function definitions.

Enumerations

enum class  atmega328p::pin::Port : uint8_t { atmega328p::pin::B = 0 , atmega328p::pin::C = 1 , atmega328p::pin::D = 2 }
 GPIO port identifiers. More...
enum class  atmega328p::pin::Pin : uint8_t {
  atmega328p::pin::PB0 = 0x00 , atmega328p::pin::PB1 = 0x01 , atmega328p::pin::PB2 = 0x02 , atmega328p::pin::PB3 = 0x03 ,
  atmega328p::pin::PB4 = 0x04 , atmega328p::pin::PB5 = 0x05 , atmega328p::pin::PB6 = 0x06 , atmega328p::pin::PB7 = 0x07 ,
  atmega328p::pin::PC0 = 0x10 , atmega328p::pin::PC1 = 0x11 , atmega328p::pin::PC2 = 0x12 , atmega328p::pin::PC3 = 0x13 ,
  atmega328p::pin::PC4 = 0x14 , atmega328p::pin::PC5 = 0x15 , atmega328p::pin::PC6 = 0x16 , atmega328p::pin::PD0 = 0x20 ,
  atmega328p::pin::PD1 = 0x21 , atmega328p::pin::PD2 = 0x22 , atmega328p::pin::PD3 = 0x23 , atmega328p::pin::PD4 = 0x24 ,
  atmega328p::pin::PD5 = 0x25 , atmega328p::pin::PD6 = 0x26 , atmega328p::pin::PD7 = 0x27
}
 Logical pin identifiers, independent of package terminals. More...
enum  : uint8_t {
  atmega328p::pin::port_shift = 4 , atmega328p::pin::port_mask = 0xF0 , atmega328p::pin::bit_mask = 0x0F , atmega328p::pin::port_b_code = 0 ,
  atmega328p::pin::port_c_code = 1 , atmega328p::pin::port_d_code = 2 , atmega328p::pin::port_b_width = 8 , atmega328p::pin::port_c_width = 7 ,
  atmega328p::pin::port_d_width = 8 , atmega328p::pin::port_b_mask = 0xFF , atmega328p::pin::port_c_mask = 0x7F , atmega328p::pin::port_d_mask = 0xFF ,
  atmega328p::pin::pin_count = 23
}
enum class  atmega328p::Pin
 Logical pin identifiers, independent of package terminals. More...
enum class  atmega328p::Port
 GPIO port identifiers. More...

Detailed Description

Logical GPIO pin and port identifiers.