Byggern
SPI::PIN Struct Reference

A struct which holds the information about a pin. Used in order to pass pin information. More...

#include <spi.h>

Public Member Functions

 PIN (volatile uint8_t *port, volatile uint8_t *ddr, uint8_t pin)
 
 PIN ()
 
PIN operator= (PIN *original_pin)
 

Public Attributes

volatile uint8_t * port
 
volatile uint8_t * ddr
 
uint8_t pin
 

Detailed Description

A struct which holds the information about a pin. Used in order to pass pin information.

Constructor & Destructor Documentation

§ PIN() [1/2]

SPI::PIN::PIN ( volatile uint8_t *  port,
volatile uint8_t *  ddr,
uint8_t  pin 
)
inline

Constructor with 3 parameters

Parameters
portA pointer to the port register for the pin
ddrA pointer to the data direction register for the pin
Thepin number

§ PIN() [2/2]

SPI::PIN::PIN ( )
inline

Constructor with 2 parameters

Parameters
portA pointer to the port register for the pin
ddrA pointer to the data direction register for the pin

Member Function Documentation

§ operator=()

PIN SPI::PIN::operator= ( PIN original_pin)
inline

Overloading the "=" operator for PIN.

Member Data Documentation

§ ddr

volatile uint8_t* SPI::PIN::ddr

A pointer to the data direction register for the pin

§ pin

uint8_t SPI::PIN::pin

The pin number

§ port

volatile uint8_t* SPI::PIN::port

A pointer to the port register for the pin


The documentation for this struct was generated from the following file: