|
ATmega328p
Hardware definitions
|
Logical pin and alternate-function definitions. More...
Namespaces | |
| namespace | capabilities |
| Capability masks for individual logical pins. | |
Enumerations | |
| enum class | Port : uint8_t { B = 0 , C = 1 , D = 2 } |
| GPIO port identifiers. More... | |
| enum class | Pin : uint8_t { PB0 = 0x00 , PB1 = 0x01 , PB2 = 0x02 , PB3 = 0x03 , PB4 = 0x04 , PB5 = 0x05 , PB6 = 0x06 , PB7 = 0x07 , PC0 = 0x10 , PC1 = 0x11 , PC2 = 0x12 , PC3 = 0x13 , PC4 = 0x14 , PC5 = 0x15 , PC6 = 0x16 , PD0 = 0x20 , PD1 = 0x21 , PD2 = 0x22 , PD3 = 0x23 , PD4 = 0x24 , PD5 = 0x25 , PD6 = 0x26 , PD7 = 0x27 } |
| Logical pin identifiers, independent of package terminals. More... | |
| enum | : uint8_t { port_shift = 4 , port_mask = 0xF0 , bit_mask = 0x0F , port_b_code = 0 , port_c_code = 1 , port_d_code = 2 , port_b_width = 8 , port_c_width = 7 , port_d_width = 8 , port_b_mask = 0xFF , port_c_mask = 0x7F , port_d_mask = 0xFF , pin_count = 23 } |
| enum | Capability : uint16_t { None = 0x0000U , GPIO = 0x0001U , PinChangeInterrupt = 0x0002U , ADC = 0x0004U , PWM = 0x0008U , ExternalInterrupt = 0x0010U , SPI = 0x0020U , USART = 0x0040U , TWI = 0x0080U , TimerExternalClock = 0x0100U , InputCapture = 0x0200U , ClockOutput = 0x0400U , Reset = 0x0800U , AnalogComparator = 0x1000U , TimerOscillator = 0x2000U , MainClockOscillator = 0x4000U } |
| Bit flags describing a pin's available hardware functions. More... | |
| enum class | Function : uint8_t { GPIO , PCINT0 , PCINT1 , PCINT2 , PCINT3 , PCINT4 , PCINT5 , PCINT6 , PCINT7 , PCINT8 , PCINT9 , PCINT10 , PCINT11 , PCINT12 , PCINT13 , PCINT14 , PCINT16 , PCINT17 , PCINT18 , PCINT19 , PCINT20 , PCINT21 , PCINT22 , PCINT23 , CLKO , ICP1 , OC1A , SS , OC1B , MOSI , OC2A , MISO , SCK , XTAL1 , TOSC1 , XTAL2 , TOSC2 , ADC0 , ADC1 , ADC2 , ADC3 , ADC4 , ADC5 , SDA , SCL , RESET , RXD , TXD , INT0 , INT1 , OC2B , XCK , T0 , OC0B , T1 , OC0A , AIN0 , AIN1 } |
| Alternate pin function identifiers. More... | |
Logical pin and alternate-function definitions.
| anonymous enum : uint8_t |
| Enumerator | |
|---|---|
| port_shift | Port shift count. |
| port_mask | Port mask. |
| bit_mask | Bit mask. |
| port_b_code | Port b code. |
| port_c_code | Port c code. |
| port_d_code | Port d code. |
| port_b_width | Port b width. |
| port_c_width | Port c width. |
| port_d_width | Port d width. |
| port_b_mask | Port b mask. |
| port_c_mask | Port c mask. |
| port_d_mask | Port d mask. |
| pin_count | Number of pin. |
| enum atmega328p::pin::Capability : uint16_t |
Bit flags describing a pin's available hardware functions.
|
strong |
Alternate pin function identifiers.
|
strong |
Logical pin identifiers, independent of package terminals.
| Enumerator | |
|---|---|
| PB0 | 0x00 - Port B, bit 0. |
| PB1 | 0x01 - Port B, bit 1. |
| PB2 | 0x02 - Port B, bit 2. |
| PB3 | 0x03 - Port B, bit 3. |
| PB4 | 0x04 - Port B, bit 4. |
| PB5 | 0x05 - Port B, bit 5. |
| PB6 | 0x06 - Port B, bit 6. |
| PB7 | 0x07 - Port B, bit 7. |
| PC0 | 0x10 - Port C, bit 0. |
| PC1 | 0x11 - Port C, bit 1. |
| PC2 | 0x12 - Port C, bit 2. |
| PC3 | 0x13 - Port C, bit 3. |
| PC4 | 0x14 - Port C, bit 4. |
| PC5 | 0x15 - Port C, bit 5. |
| PC6 | 0x16 - Port C, bit 6. RESET by default. |
| PD0 | 0x20 - Port D, bit 0. |
| PD1 | 0x21 - Port D, bit 1. |
| PD2 | 0x22 - Port D, bit 2. |
| PD3 | 0x23 - Port D, bit 3. |
| PD4 | 0x24 - Port D, bit 4. |
| PD5 | 0x25 - Port D, bit 5. |
| PD6 | 0x26 - Port D, bit 6. |
| PD7 | 0x27 - Port D, bit 7. |
|
strong |