SLS AVR Lib 0.1a
 
Loading...
Searching...
No Matches
gpio.h File Reference

AVR port register helpers. More...

Go to the source code of this file.

Macros

#define MAKE_PORT_NAME(_p)
 Make PORTx register by by port letter.
 
#define MAKE_DDR_NAME(_p)
 Make DDRx register by by port letter.
 
#define MAKE_PIN_NAME(_p)
 Make PINx register by by port letter.
 
#define MAKE_MASK_x0   0x00
 No pins selected.
 
#define MAKE_MASK_x1   _BV
 Creates a port mask from a single pin bit.
 
#define MAKE_MASK_x2(_b1, _b2)
 Creates a port mask from two pin bits.
 
#define MAKE_MASK_x3(_b1, _b2, _b3)
 Creates a port mask using three pin bits.
 
#define MAKE_MASK_x4(_b1, _b2, _b3, _b4)
 Creates a port mask from four pin bits.
 
#define MAKE_MASK_x5(_b1, _b2, _b3, _b4, _b5)
 Creates a port mask from five pin bits.
 
#define MAKE_MASK_x6(_b1, _b2, _b3, _b4, _b5, _b6)
 Creates a port mask from six pin bits.
 
#define MAKE_MASK_x7(_b1, _b2, _b3, _b4, _b5, _b6, _b7)
 Creates a port mask from seven pin bits.
 
#define MAKE_MASK_x8   0xFF
 All port pins(entire port).
 
#define gpio_init(_ddr, _val)
 Writes the specified value to the DDRx register.
 
#define GPIO_INIT(_p, _val)
 A wrapper for short register naming for gpio_init()
 
#define gpio_set(_port, _val)
 Writes the specified value to the PORTx register.
 
#define GPIO_SET(_p, _val)
 A wrapper for short register naming for gpio_set()
 
#define gpio_switch(_port)
 Inverts the bits in a PORTx register.
 
#define GPIO_SWITCH(_p)
 A wrapper for short register naming for gpio_switch()
 
#define gpio_byte(_pin)
 Returns PINx register.
 
#define GPIO_BYTE(_p)
 A wrapper for short register naming for gpio_byte()
 
#define gpio_set_in(_ddr)
 Sets a entire port to input state.
 
#define GPIO_SET_IN(_p)
 A wrapper for short register naming for gpio_set_in()
 
#define gpio_set_in_z(_ddr, _port)
 Sets a entire port to high Z input state.
 
#define GPIO_SET_IN_Z(_p)
 A wrapper for short register naming for gpio_set_in_z()
 
#define gpio_set_in_pu(_ddr, _port)
 Sets a entire port to input state with use internal pull-up resistor.
 
#define GPIO_SET_IN_PU(_p)
 A wrapper for short register naming for gpio_set_in_pu()
 
#define gpio_set_out(_ddr)
 Sets a entire port to output state.
 
#define GPIO_SET_OUT(_p)
 A wrapper for short register naming for gpio_set_out()
 
#define gpio_set_out_d_lo(_ddr, _port)
 Sets port out driving low.
 
#define GPIO_SET_OUT_D_LO(_p)
 A wrapper for short register naming for gpio_set_out_d_lo()
 
#define gpio_set_out_d_hi(_ddr, _port)
 Sets port out driving hi.
 
#define GPIO_SET_OUT_D_HI(_p)
 A wrapper for short register naming for gpio_set_out_d_hi()
 
#define gpio_set_hi(_port)
 Sets entire PORTx register to high state.
 
#define GPIO_SET_HI(_p)
 A wrapper for short register naming for gpio_set_hi()
 
#define gpio_set_lo(_port)
 Sets entire PORTx register to low state.
 
#define GPIO_SET_LO(_p)
 A wrapper for short register naming for gpio_set_lo()
 
#define gpio_read   gpio_byte
 The meaningful name alias for gpio_byte.
 
#define GPIO_READ   GPIO_BYTE
 The meaningful name alias for GPIO_BYTE.
 
#define read_byte   gpio_byte
 The meaningful name alias for gpio_byte.
 
#define READ_BYTE   GPIO_BYTE
 The meaningful name alias for GPIO_BYTE.
 
#define gpio_to_read   gpio_set_in
 The meaningful name alias for gpio_set_in.
 
#define GPIO_TO_READ   GPIO_SET_IN
 The meaningful name alias for GPIO_SET_IN.
 
#define gpio_to_read_z   gpio_set_in_z
 The meaningful name alias for gpio_set_in_z.
 
#define GPIO_TO_READ_Z   GPIO_SET_IN_Z
 The meaningful name alias for GPIO_SET_IN_Z.
 
#define gpio_to_read_pu   gpio_set_in_pu
 The meaningful name alias for gpio_set_in_pu.
 
#define GPIO_TO_READ_PU   GPIO_SET_IN_PU
 The meaningful name alias for GPIO_SET_IN_PU.
 
#define gpio_pull_up   gpio_set_hi
 The meaningful name alias for gpio_set_hi.
 
#define GPIO_PULL_UP   GPIO_SET_HI
 The meaningful name alias for GPIO_SET_HI.
 
#define gpio_to_write   gpio_set_out
 The meaningful name alias for gpio_set_out.
 
#define GPIO_TO_WRITE   GPIO_SET_OUT
 The meaningful name alias for GPIO_SET_OUT.
 
#define gpio_to_write_d_lo   gpio_set_out_d_lo
 The meaningful name alias for gpio_set_out_d_lo.
 
#define GPIO_TO_WRITE_D_LO   GPIO_SET_OUT_D_LO
 The meaningful name alias for GPIO_SET_OUT_D_LO.
 
#define gpio_to_write_d_hi   gpio_set_out_d_hi
 The meaningful name alias for gpio_set_out_d_hi.
 
#define GPIO_TO_WRITE_D_HI   GPIO_SET_OUT_D_HI
 The meaningful name alias for GPIO_SET_OUT_D_HI.
 
#define gpio_write   gpio_set
 The meaningful name alias for gpio_set.
 
#define GPIO_WRITE   GPIO_SET
 The meaningful name alias for GPIO_SET.
 
#define write_byte   gpio_set
 The meaningful name alias for gpio_set.
 
#define WRITE_BYTE   GPIO_SET
 The meaningful name alias for GPIO_SET.
 
#define port_set_in(_ddr, _pinset)
 
#define PORT_SET_IN(_p, _pinset)
 
#define port_set_out(_ddr, _pinset)
 
#define PORT_SET_OUT(_p, _pinset)
 
#define port_set(_port, _pinset)
 
#define PORT_SET(_p, _pinset)
 
#define port_clear(_port, _pinset)
 
#define PORT_CLEAR(_p, _pinset)
 
#define port_switch(_port, _pinset)
 
#define PORT_SWITCH(_p, _pinset)
 
#define port_replace(_port, _pinset, _val)
 
#define PORT_REPLACE(_p, _pinset, _val)
 
#define port_read(_pin, _pinset)
 
#define PORT_READ(_p, _pinset)
 
#define port_set_in_z(_ddr, _port, _pinset)
 
#define PORT_SET_IN_Z(_p, _pinset)
 
#define port_set_in_pu(_ddr, _port, _pinset)
 
#define PORT_SET_IN_PU(_p, _pinset)
 
#define port_set_out_d_lo(_ddr, _port, _pinset)
 
#define PORT_SET_OUT_D_LO(_p, _pinset)
 
#define port_set_out_d_hi(_ddr, _port, _pinset)
 
#define PORT_SET_OUT_D_HI(_p, _pinset)
 
#define port_set_hi   port_set
 
#define PORT_SET_HI   PORT_SET
 
#define port_pull_up   port_set
 
#define PORT_PULL_UP   PORT_SET
 
#define port_set_lo   port_clear
 
#define PORT_SET_LO   PORT_CLEAR
 
#define port_to_read   port_set_in
 
#define PORT_TO_READ   PORT_SET_IN
 
#define port_to_read_pu   port_set_in_pu
 
#define PORT_TO_READ_PU   PORT_SET_IN_PU
 
#define port_to_read_z   port_set_in_z
 
#define PORT_TO_READ_Z   PORT_SET_IN_Z
 
#define port_to_write   port_set_out
 
#define PORT_TO_WRITE   PORT_SET_OUT
 
#define port_write   port_replace
 
#define PORT_WRITE   PORT_REPLACE
 
#define port_to_write_d_lo   port_set_out_d_lo
 
#define PORT_TO_WRITE_D_LO   PORT_SET_OUT_D_LO
 
#define port_to_write_d_hi   port_set_out_d_hi
 
#define PORT_TO_WRITE_D_HI   PORT_SET_OUT_D_HI
 
#define NIBBLE_LO_PINSET   0x0F
 The lower nibble port mask.
 
#define nibble_lo_set_in(_ddr)
 
#define NIBBLE_LO_SET_IN(_p)
 
#define nibble_lo_set_out(_ddr)
 
#define NIBBLE_LO_SET_OUT(_p)
 
#define nibble_lo_set(_port)
 
#define NIBBLE_LO_SET(_p)
 
#define nibble_lo_clear(_port)
 
#define NIBBLE_LO_CLEAR(_p)
 
#define nibble_lo_switch(_port)
 
#define NIBBLE_LO_SWITCH(_p)
 
#define nibble_lo_replace(_port, _val)
 
#define NIBBLE_LO_REPLACE(_p, _val)
 
#define nibble_lo_read(_pin)
 
#define NIBBLE_LO_READ(_p)
 
#define nibble_lo_set_in_z(_ddr, _port)
 
#define NIBBLE_LO_SET_IN_Z(_p)
 
#define nibble_lo_set_in_pu(_ddr, _port)
 
#define NIBBLE_LO_SET_IN_PU(_p)
 
#define nibble_lo_set_out_d_lo(_ddr, _port)
 
#define NIBBLE_LO_SET_OUT_D_LO(_p)
 
#define nibble_lo_set_out_d_hi(_ddr, _port)
 
#define NIBBLE_LO_SET_OUT_D_HI(_p)
 
#define nibble_lo_set_hi   nibble_lo_set
 
#define NIBBLE_LO_SET_HI   NIBBLE_LO_SET
 
#define nibble_lo_pull_up   nibble_lo_set
 
#define NIBBLE_LO_PULL_UP   NIBBLE_LO_SET
 
#define nibble_lo_set_lo   nibble_lo_clear
 
#define NIBBLE_LO_SET_LO   NIBBLE_LO_CLEAR
 
#define nibble_lo_to_read   nibble_lo_set_in
 
#define NIBBLE_LO_TO_READ   NIBBLE_LO_SET_IN
 
#define nibble_lo_to_read_pu   nibble_lo_set_in_pu
 
#define NIBBLE_LO_TO_READ_PU   NIBBLE_LO_SET_IN_PU
 
#define nibble_lo_to_read_z   nibble_lo_set_in_z
 
#define NIBBLE_LO_TO_READ_Z   NIBBLE_LO_SET_IN_Z
 
#define nibble_lo_to_write   nibble_lo_set_out
 
#define NIBBLE_LO_TO_WRITE   NIBBLE_LO_SET_OUT
 
#define nibble_lo_write   nibble_lo_replace
 
#define NIBBLE_LO_WRITE   NIBBLE_LO_REPLACE
 
#define nibble_lo_to_write_d_lo   nibble_lo_set_out_d_lo
 
#define NIBBLE_LO_TO_WRITE_D_LO   NIBBLE_LO_SET_OUT_D_LO
 
#define nibble_lo_to_write_d_hi   nibble_lo_set_out_d_hi
 
#define NIBBLE_LO_TO_WRITE_D_HI   NIBBLE_LO_SET_OUT_D_HI
 
#define NIBBLE_UP_PINSET   0xF0
 The upper nibble port mask.
 
#define nibble_up_set_in(_ddr)
 
#define NIBBLE_UP_SET_IN(_p)
 
#define nibble_up_set_out(_ddr)
 
#define NIBBLE_UP_SET_OUT(_p)
 
#define nibble_up_set(_port)
 
#define NIBBLE_UP_SET(_p)
 
#define nibble_up_clear(_port)
 
#define NIBBLE_UP_CLEAR(_p)
 
#define nibble_up_switch(_port)
 
#define NIBBLE_UP_SWITCH(_p)
 
#define nibble_up_replace(_port, _val)
 
#define NIBBLE_UP_REPLACE(_p, _val)
 
#define nibble_up_read(_pin)
 
#define NIBBLE_UP_READ(_p)
 
#define nibble_up_set_in_z(_ddr, _port)
 
#define NIBBLE_UP_SET_IN_Z(_p)
 
#define nibble_up_set_in_pu(_ddr, _port)
 
#define NIBBLE_UP_SET_IN_PU(_p)
 
#define nibble_up_set_out_d_lo(_ddr, _port)
 
#define NIBBLE_UP_SET_OUT_D_LO(_p)
 
#define nibble_up_set_out_d_hi(_ddr, _port)
 
#define NIBBLE_UP_SET_OUT_D_HI(_p)
 
#define nibble_up_set_hi   nibble_up_set
 
#define NIBBLE_UP_SET_HI   NIBBLE_UP_SET
 
#define nibble_up_pull_up   nibble_up_set
 
#define NIBBLE_UP_PULL_UP   NIBBLE_UP_SET
 
#define nibble_up_set_lo   nibble_up_clear
 
#define NIBBLE_UP_SET_LO   NIBBLE_UP_CLEAR
 
#define nibble_up_to_read   nibble_up_set_in
 
#define NIBBLE_UP_TO_READ   NIBBLE_UP_SET_IN
 
#define nibble_up_to_read_pu   nibble_up_set_in_pu
 
#define NIBBLE_UP_TO_READ_PU   NIBBLE_UP_SET_IN_PU
 
#define nibble_up_to_read_z   nibble_up_set_in_z
 
#define NIBBLE_UP_TO_READ_Z   NIBBLE_UP_SET_IN_Z
 
#define nibble_up_to_write   nibble_up_set_out
 
#define NIBBLE_UP_TO_WRITE   NIBBLE_UP_SET_OUT
 
#define nibble_up_write   nibble_up_replace
 
#define NIBBLE_UP_WRITE   NIBBLE_UP_REPLACE
 
#define nibble_up_to_write_d_lo   nibble_up_set_out_d_lo
 
#define NIBBLE_UP_TO_WRITE_D_LO   NIBBLE_UP_SET_OUT_D_LO
 
#define nibble_up_to_write_d_hi   nibble_up_set_out_d_hi
 
#define NIBBLE_UP_TO_WRITE_D_HI   NIBBLE_UP_SET_OUT_D_HI
 
#define pin_set_in(_ddr, _b)
 
#define PIN_SET_IN(_p, _b)
 
#define pin_set_out(_ddr, _b)
 
#define PIN_SET_OUT(_p, _b)
 
#define pin_set(_port, _b)
 
#define PIN_SET(_p, _b)
 
#define pin_clear(_port, _b)
 
#define PIN_CLEAR(_p, _b)
 
#define pin_switch(_port, _b)
 
#define PIN_SWITCH(_p, _b)
 
#define pin_replace(_port, _b, _val)
 
#define PIN_REPLACE(_p, _b, _val)
 
#define pin_read(_pin, _b)
 
#define PIN_READ(_p, _b)
 
#define pin_set_in_z(_ddr, _port, _b)
 
#define PIN_SET_IN_Z(_p, _b)
 
#define pin_set_in_pu(_ddr, _port, _b)
 
#define PIN_SET_IN_PU(_p, _b)
 
#define pin_set_out_d_lo(_ddr, _port, _b)
 
#define PIN_SET_OUT_D_LO(_p, _b)
 
#define pin_set_out_d_hi(_ddr, _port, _b)
 
#define PIN_SET_OUT_D_HI(_p, _b)
 
#define pin_set_hi   pin_set
 
#define PIN_SET_HI   PIN_SET
 
#define pin_on   pin_set
 
#define PIN_ON   PIN_SET
 
#define pin_pull_up   pin_set
 
#define PIN_PULL_UP   PIN_SET
 
#define pin_set_lo   pin_clear
 
#define PIN_SET_LO   PIN_CLEAR
 
#define pin_off   pin_clear
 
#define PIN_OFF   PIN_CLEAR
 
#define pin_to_read   pin_set_in
 
#define PIN_TO_READ   PIN_SET_IN
 
#define pin_to_read_pu   pin_set_in_pu
 
#define PIN_TO_READ_PU   PIN_SET_IN_PU
 
#define pin_to_read_z   pin_set_in_z
 
#define PIN_TO_READ_Z   PIN_SET_IN_Z
 
#define pin_to_write   pin_set_out
 
#define PIN_TO_WRITE   PIN_SET_OUT
 
#define pin_write   pin_replace
 
#define PIN_WRITE   PIN_REPLACE
 
#define pin_to_write_d_lo   pin_set_out_d_lo
 
#define PIN_TO_WRITE_D_LO   PIN_SET_OUT_D_LO
 
#define pin_to_write_d_hi   pin_set_out_d_hi
 
#define PIN_TO_WRITE_D_HI   PIN_SET_OUT_D_HI
 

Detailed Description

AVR port register helpers.

Author
Simon Litt simon.nosp@m.@1it.nosp@m.t.net https://coding.1itt.net, https://github.com/SimonLitt

Function naming convention:

  • gpio_xxx(GPIO_XXX) - the entire port
  • port_xxx(PORT_XXX) - the port pin set
  • nibble_lo_xxx(NIBBLE_LO_XXX) - the lower nibble pin set
  • nibble_up_xxx(NIBBLE_HI_XXX) - the upper nibble pin set
  • pin_xxx(PIN_XXX) - the distinct pin

Parameters naming convention:

  • _ddr - AVR Data Direction Register
  • _port - AVR PORTx Register
  • _pin - AVR PINx Register
  • _p - the port name (single char). For example С for DDRC, PORTC or for PINC
  • _b - the port bit as numder from 0 to 7 or as definded macro e.g. PC3
  • _pinset - the port bit set
  • _val - the transmitted value
#include <sls-avr/avr.h>
int main(void) {
...
GPIO_SET(A, 0xF0);
PORT_SET(A, 0b10100000);
PIN_TO_READ(C, PC3);
...
}
AVR lib.
#define PIN_TO_READ
Definition gpio.h:497
#define GPIO_SET_OUT_D_HI(_p)
A wrapper for short register naming for gpio_set_out_d_hi()
Definition gpio.h:183
#define GPIO_SET(_p, _val)
A wrapper for short register naming for gpio_set()
Definition gpio.h:124
#define PORT_SET(_p, _pinset)
Definition gpio.h:247
#include <sls-avr/avr.h>
int main(void) {
...
gpio_set(DDRA, 0xF0);
port_set(PORTA, 0b10100000);
gpio_set_out_d_hi(DDRB, PORTB);
pin_to_read(DDRC, PC3);
...
}
#define pin_to_read
Definition gpio.h:496
#define port_set(_port, _pinset)
Definition gpio.h:246
#define gpio_set_out_d_hi(_ddr, _port)
Sets port out driving hi.
Definition gpio.h:182
#define gpio_set(_port, _val)
Writes the specified value to the PORTx register.
Definition gpio.h:123
Remarks
Many aliases are defined. They should be used in a way that makes the code self-documenting. For example gpio_pull_up makes sense when the AVR port is in input mode. Otherwise, it need to use gpio_set_hi.

Macro Definition Documentation

◆ GPIO_BYTE

#define GPIO_BYTE ( _p)
Value:
#define MAKE_PIN_NAME(_p)
Make PINx register by by port letter.
Definition gpio.h:88
#define gpio_byte(_pin)
Returns PINx register.
Definition gpio.h:138

A wrapper for short register naming for gpio_byte()

◆ gpio_byte

#define gpio_byte ( _pin)
Value:
(_pin)

Returns PINx register.

Parameters
_pinThe PINx register.

◆ GPIO_INIT

#define GPIO_INIT ( _p,
_val )
Value:
#define gpio_init(_ddr, _val)
Writes the specified value to the DDRx register.
Definition gpio.h:116
#define MAKE_DDR_NAME(_p)
Make DDRx register by by port letter.
Definition gpio.h:86

A wrapper for short register naming for gpio_init()

◆ gpio_init

#define gpio_init ( _ddr,
_val )
Value:
((_ddr) = (_val))

Writes the specified value to the DDRx register.

Parameters
_ddrThe DDRx register.
_valThe value being passed.

◆ GPIO_PULL_UP

#define GPIO_PULL_UP   GPIO_SET_HI

The meaningful name alias for GPIO_SET_HI.

◆ gpio_pull_up

#define gpio_pull_up   gpio_set_hi

The meaningful name alias for gpio_set_hi.

◆ GPIO_READ

#define GPIO_READ   GPIO_BYTE

The meaningful name alias for GPIO_BYTE.

◆ gpio_read

#define gpio_read   gpio_byte

The meaningful name alias for gpio_byte.

◆ GPIO_SET

#define GPIO_SET ( _p,
_val )
Value:
#define MAKE_PORT_NAME(_p)
Make PORTx register by by port letter.
Definition gpio.h:84

A wrapper for short register naming for gpio_set()

◆ gpio_set

#define gpio_set ( _port,
_val )
Value:
((_port) = (_val))

Writes the specified value to the PORTx register.

Parameters
_portThe PORTx register.
_valThe value being passed.

◆ GPIO_SET_HI

#define GPIO_SET_HI ( _p)
Value:
#define gpio_set_hi(_port)
Sets entire PORTx register to high state.
Definition gpio.h:190

A wrapper for short register naming for gpio_set_hi()

◆ gpio_set_hi

#define gpio_set_hi ( _port)
Value:
gpio_set((_port), 0xFF)

Sets entire PORTx register to high state.

Parameters
_portThe PORTx register.

◆ GPIO_SET_IN

#define GPIO_SET_IN ( _p)
Value:
#define gpio_set_in(_ddr)
Sets a entire port to input state.
Definition gpio.h:144

A wrapper for short register naming for gpio_set_in()

◆ gpio_set_in

#define gpio_set_in ( _ddr)
Value:
gpio_init((_ddr), 0x00);

Sets a entire port to input state.

Parameters
_ddrThe DDRx register.

◆ GPIO_SET_IN_PU

#define GPIO_SET_IN_PU ( _p)
Value:
#define gpio_set_in_pu(_ddr, _port)
Sets a entire port to input state with use internal pull-up resistor.
Definition gpio.h:158

A wrapper for short register naming for gpio_set_in_pu()

◆ gpio_set_in_pu

#define gpio_set_in_pu ( _ddr,
_port )
Value:
gpio_set_in((_ddr)); gpio_pull_up((_port))
#define gpio_pull_up
The meaningful name alias for gpio_set_hi.
Definition gpio.h:219

Sets a entire port to input state with use internal pull-up resistor.

Parameters
_ddrThe DDRx register.
_portThe PORTx register.

◆ GPIO_SET_IN_Z

#define GPIO_SET_IN_Z ( _p)
Value:
#define gpio_set_in_z(_ddr, _port)
Sets a entire port to high Z input state.
Definition gpio.h:151

A wrapper for short register naming for gpio_set_in_z()

◆ gpio_set_in_z

#define gpio_set_in_z ( _ddr,
_port )
Value:
gpio_set_in((_ddr)); gpio_set_lo((_port))
#define gpio_set_lo(_port)
Sets entire PORTx register to low state.
Definition gpio.h:198

Sets a entire port to high Z input state.

Parameters
_ddrThe DDRx register.
_portThe PORTx register.

◆ GPIO_SET_LO

#define GPIO_SET_LO ( _p)
Value:

A wrapper for short register naming for gpio_set_lo()

◆ gpio_set_lo

#define gpio_set_lo ( _port)
Value:
gpio_set((_port), 0x00)

Sets entire PORTx register to low state.

Parameters
_portThe PORTx register.

◆ GPIO_SET_OUT

#define GPIO_SET_OUT ( _p)
Value:
#define gpio_set_out(_ddr)
Sets a entire port to output state.
Definition gpio.h:164

A wrapper for short register naming for gpio_set_out()

◆ gpio_set_out

#define gpio_set_out ( _ddr)
Value:
gpio_init((_ddr), 0xFF);

Sets a entire port to output state.

Parameters
_ddrThe DDRx register.

◆ GPIO_SET_OUT_D_HI

#define GPIO_SET_OUT_D_HI ( _p)
Value:

A wrapper for short register naming for gpio_set_out_d_hi()

◆ gpio_set_out_d_hi

#define gpio_set_out_d_hi ( _ddr,
_port )
Value:
gpio_set_out((_ddr)); gpio_set_hi((_port))

Sets port out driving hi.

Parameters
_ddrThe DDRx register.
_portThe PORTx register.

◆ GPIO_SET_OUT_D_LO

#define GPIO_SET_OUT_D_LO ( _p)
Value:
#define gpio_set_out_d_lo(_ddr, _port)
Sets port out driving low.
Definition gpio.h:173

A wrapper for short register naming for gpio_set_out_d_lo()

◆ gpio_set_out_d_lo

#define gpio_set_out_d_lo ( _ddr,
_port )
Value:
gpio_set_out((_ddr)); gpio_set_lo((_port))

Sets port out driving low.

Parameters
_ddrThe DDRx register.
_portThe PORTx register.

◆ GPIO_SWITCH

#define GPIO_SWITCH ( _p)
Value:
#define gpio_switch(_port)
Inverts the bits in a PORTx register.
Definition gpio.h:130

A wrapper for short register naming for gpio_switch()

◆ gpio_switch

#define gpio_switch ( _port)
Value:
((_port) = ~(_port))

Inverts the bits in a PORTx register.

Parameters
_portThe PORTx register.

◆ GPIO_TO_READ

#define GPIO_TO_READ   GPIO_SET_IN

The meaningful name alias for GPIO_SET_IN.

◆ gpio_to_read

#define gpio_to_read   gpio_set_in

The meaningful name alias for gpio_set_in.

◆ GPIO_TO_READ_PU

#define GPIO_TO_READ_PU   GPIO_SET_IN_PU

The meaningful name alias for GPIO_SET_IN_PU.

◆ gpio_to_read_pu

#define gpio_to_read_pu   gpio_set_in_pu

The meaningful name alias for gpio_set_in_pu.

◆ GPIO_TO_READ_Z

#define GPIO_TO_READ_Z   GPIO_SET_IN_Z

The meaningful name alias for GPIO_SET_IN_Z.

◆ gpio_to_read_z

#define gpio_to_read_z   gpio_set_in_z

The meaningful name alias for gpio_set_in_z.

◆ GPIO_TO_WRITE

#define GPIO_TO_WRITE   GPIO_SET_OUT

The meaningful name alias for GPIO_SET_OUT.

◆ gpio_to_write

#define gpio_to_write   gpio_set_out

The meaningful name alias for gpio_set_out.

◆ GPIO_TO_WRITE_D_HI

#define GPIO_TO_WRITE_D_HI   GPIO_SET_OUT_D_HI

The meaningful name alias for GPIO_SET_OUT_D_HI.

◆ gpio_to_write_d_hi

#define gpio_to_write_d_hi   gpio_set_out_d_hi

The meaningful name alias for gpio_set_out_d_hi.

◆ GPIO_TO_WRITE_D_LO

#define GPIO_TO_WRITE_D_LO   GPIO_SET_OUT_D_LO

The meaningful name alias for GPIO_SET_OUT_D_LO.

◆ gpio_to_write_d_lo

#define gpio_to_write_d_lo   gpio_set_out_d_lo

The meaningful name alias for gpio_set_out_d_lo.

◆ GPIO_WRITE

#define GPIO_WRITE   GPIO_SET

The meaningful name alias for GPIO_SET.

◆ gpio_write

#define gpio_write   gpio_set

The meaningful name alias for gpio_set.

◆ MAKE_DDR_NAME

#define MAKE_DDR_NAME ( _p)
Value:
MAKE_GLUE_X2(DDR, _p)
#define MAKE_GLUE_X2(a, b)
Glues 2 components together.
Definition defines.h:32

Make DDRx register by by port letter.

◆ MAKE_MASK_x0

#define MAKE_MASK_x0   0x00

No pins selected.

◆ MAKE_MASK_x1

#define MAKE_MASK_x1   _BV

Creates a port mask from a single pin bit.

◆ MAKE_MASK_x2

#define MAKE_MASK_x2 ( _b1,
_b2 )
Value:
(_BV((_b1)) | _BV((_b2)))

Creates a port mask from two pin bits.

◆ MAKE_MASK_x3

#define MAKE_MASK_x3 ( _b1,
_b2,
_b3 )
Value:
(_BV((_b1)) | _BV((_b2)) | _BV((_b3)))

Creates a port mask using three pin bits.

◆ MAKE_MASK_x4

#define MAKE_MASK_x4 ( _b1,
_b2,
_b3,
_b4 )
Value:
(_BV((_b1)) | _BV((_b2)) | _BV((_b3)) | _BV((_b4)))

Creates a port mask from four pin bits.

◆ MAKE_MASK_x5

#define MAKE_MASK_x5 ( _b1,
_b2,
_b3,
_b4,
_b5 )
Value:
(_BV((_b1)) | _BV((_b2)) | _BV((_b3)) | _BV((_b4)) | _BV((_b5)))

Creates a port mask from five pin bits.

◆ MAKE_MASK_x6

#define MAKE_MASK_x6 ( _b1,
_b2,
_b3,
_b4,
_b5,
_b6 )
Value:
(_BV((_b1)) | _BV((_b2)) | _BV((_b3)) | _BV((_b4)) | _BV((_b5)) | _BV((_b6)))

Creates a port mask from six pin bits.

◆ MAKE_MASK_x7

#define MAKE_MASK_x7 ( _b1,
_b2,
_b3,
_b4,
_b5,
_b6,
_b7 )
Value:
(_BV((_b1)) | _BV((_b2)) | _BV((_b3)) | _BV((_b4)) | _BV((_b5)) | _BV((_b6)) | _BV((_b7)))

Creates a port mask from seven pin bits.

◆ MAKE_MASK_x8

#define MAKE_MASK_x8   0xFF

All port pins(entire port).

◆ MAKE_PIN_NAME

#define MAKE_PIN_NAME ( _p)
Value:
MAKE_GLUE_X2(PIN, _p)

Make PINx register by by port letter.

◆ MAKE_PORT_NAME

#define MAKE_PORT_NAME ( _p)
Value:
MAKE_GLUE_X2(PORT, _p)

Make PORTx register by by port letter.

◆ NIBBLE_LO_CLEAR

#define NIBBLE_LO_CLEAR ( _p)
Value:
#define nibble_lo_clear(_port)
Definition gpio.h:317

◆ nibble_lo_clear

#define nibble_lo_clear ( _port)
Value:
#define port_clear(_port, _pinset)
Definition gpio.h:249
#define NIBBLE_LO_PINSET
The lower nibble port mask.
Definition gpio.h:306

◆ NIBBLE_LO_PINSET

#define NIBBLE_LO_PINSET   0x0F

The lower nibble port mask.

◆ NIBBLE_LO_PULL_UP

#define NIBBLE_LO_PULL_UP   NIBBLE_LO_SET

◆ nibble_lo_pull_up

#define nibble_lo_pull_up   nibble_lo_set

◆ NIBBLE_LO_READ

#define NIBBLE_LO_READ ( _p)
Value:
#define nibble_lo_read(_pin)
Definition gpio.h:326

◆ nibble_lo_read

#define nibble_lo_read ( _pin)
Value:
#define port_read(_pin, _pinset)
Definition gpio.h:258

◆ NIBBLE_LO_REPLACE

#define NIBBLE_LO_REPLACE ( _p,
_val )
Value:
#define nibble_lo_replace(_port, _val)
Definition gpio.h:323

◆ nibble_lo_replace

#define nibble_lo_replace ( _port,
_val )
Value:
#define port_replace(_port, _pinset, _val)
Definition gpio.h:255

◆ NIBBLE_LO_SET

#define NIBBLE_LO_SET ( _p)
Value:
#define nibble_lo_set(_port)
Definition gpio.h:314

◆ nibble_lo_set

#define nibble_lo_set ( _port)
Value:

◆ NIBBLE_LO_SET_HI

#define NIBBLE_LO_SET_HI   NIBBLE_LO_SET

◆ nibble_lo_set_hi

#define nibble_lo_set_hi   nibble_lo_set

◆ NIBBLE_LO_SET_IN

#define NIBBLE_LO_SET_IN ( _p)
Value:
#define nibble_lo_set_in(_ddr)
Definition gpio.h:308

◆ nibble_lo_set_in

#define nibble_lo_set_in ( _ddr)
Value:
#define port_set_in(_ddr, _pinset)
Definition gpio.h:240

◆ NIBBLE_LO_SET_IN_PU

#define NIBBLE_LO_SET_IN_PU ( _p)
Value:
#define nibble_lo_set_in_pu(_ddr, _port)
Definition gpio.h:332

◆ nibble_lo_set_in_pu

#define nibble_lo_set_in_pu ( _ddr,
_port )
Value:
#define port_set_in_pu(_ddr, _port, _pinset)
Definition gpio.h:264

◆ NIBBLE_LO_SET_IN_Z

#define NIBBLE_LO_SET_IN_Z ( _p)
Value:
#define nibble_lo_set_in_z(_ddr, _port)
Definition gpio.h:329

◆ nibble_lo_set_in_z

#define nibble_lo_set_in_z ( _ddr,
_port )
Value:
#define port_set_in_z(_ddr, _port, _pinset)
Definition gpio.h:261

◆ NIBBLE_LO_SET_LO

#define NIBBLE_LO_SET_LO   NIBBLE_LO_CLEAR

◆ nibble_lo_set_lo

#define nibble_lo_set_lo   nibble_lo_clear

◆ NIBBLE_LO_SET_OUT

#define NIBBLE_LO_SET_OUT ( _p)
Value:
#define nibble_lo_set_out(_ddr)
Definition gpio.h:311

◆ nibble_lo_set_out

#define nibble_lo_set_out ( _ddr)
Value:
#define port_set_out(_ddr, _pinset)
Definition gpio.h:243

◆ NIBBLE_LO_SET_OUT_D_HI

#define NIBBLE_LO_SET_OUT_D_HI ( _p)
Value:
#define nibble_lo_set_out_d_hi(_ddr, _port)
Definition gpio.h:338

◆ nibble_lo_set_out_d_hi

#define nibble_lo_set_out_d_hi ( _ddr,
_port )
Value:
#define port_set_out_d_hi(_ddr, _port, _pinset)
Definition gpio.h:270

◆ NIBBLE_LO_SET_OUT_D_LO

#define NIBBLE_LO_SET_OUT_D_LO ( _p)
Value:
#define nibble_lo_set_out_d_lo(_ddr, _port)
Definition gpio.h:335

◆ nibble_lo_set_out_d_lo

#define nibble_lo_set_out_d_lo ( _ddr,
_port )
Value:
#define port_set_out_d_lo(_ddr, _port, _pinset)
Definition gpio.h:267

◆ NIBBLE_LO_SWITCH

#define NIBBLE_LO_SWITCH ( _p)
Value:
#define nibble_lo_switch(_port)
Definition gpio.h:320

◆ nibble_lo_switch

#define nibble_lo_switch ( _port)
Value:
#define port_switch(_port, _pinset)
Definition gpio.h:252

◆ NIBBLE_LO_TO_READ

#define NIBBLE_LO_TO_READ   NIBBLE_LO_SET_IN

◆ nibble_lo_to_read

#define nibble_lo_to_read   nibble_lo_set_in

◆ NIBBLE_LO_TO_READ_PU

#define NIBBLE_LO_TO_READ_PU   NIBBLE_LO_SET_IN_PU

◆ nibble_lo_to_read_pu

#define nibble_lo_to_read_pu   nibble_lo_set_in_pu

◆ NIBBLE_LO_TO_READ_Z

#define NIBBLE_LO_TO_READ_Z   NIBBLE_LO_SET_IN_Z

◆ nibble_lo_to_read_z

#define nibble_lo_to_read_z   nibble_lo_set_in_z

◆ NIBBLE_LO_TO_WRITE

#define NIBBLE_LO_TO_WRITE   NIBBLE_LO_SET_OUT

◆ nibble_lo_to_write

#define nibble_lo_to_write   nibble_lo_set_out

◆ NIBBLE_LO_TO_WRITE_D_HI

#define NIBBLE_LO_TO_WRITE_D_HI   NIBBLE_LO_SET_OUT_D_HI

◆ nibble_lo_to_write_d_hi

#define nibble_lo_to_write_d_hi   nibble_lo_set_out_d_hi

◆ NIBBLE_LO_TO_WRITE_D_LO

#define NIBBLE_LO_TO_WRITE_D_LO   NIBBLE_LO_SET_OUT_D_LO

◆ nibble_lo_to_write_d_lo

#define nibble_lo_to_write_d_lo   nibble_lo_set_out_d_lo

◆ NIBBLE_LO_WRITE

#define NIBBLE_LO_WRITE   NIBBLE_LO_REPLACE

◆ nibble_lo_write

#define nibble_lo_write   nibble_lo_replace

◆ NIBBLE_UP_CLEAR

#define NIBBLE_UP_CLEAR ( _p)
Value:
#define nibble_up_clear(_port)
Definition gpio.h:385

◆ nibble_up_clear

#define nibble_up_clear ( _port)
Value:
#define NIBBLE_UP_PINSET
The upper nibble port mask.
Definition gpio.h:374

◆ NIBBLE_UP_PINSET

#define NIBBLE_UP_PINSET   0xF0

The upper nibble port mask.

◆ NIBBLE_UP_PULL_UP

#define NIBBLE_UP_PULL_UP   NIBBLE_UP_SET

◆ nibble_up_pull_up

#define nibble_up_pull_up   nibble_up_set

◆ NIBBLE_UP_READ

#define NIBBLE_UP_READ ( _p)
Value:
#define nibble_up_read(_pin)
Definition gpio.h:394

◆ nibble_up_read

#define nibble_up_read ( _pin)
Value:

◆ NIBBLE_UP_REPLACE

#define NIBBLE_UP_REPLACE ( _p,
_val )
Value:
#define nibble_up_replace(_port, _val)
Definition gpio.h:391

◆ nibble_up_replace

#define nibble_up_replace ( _port,
_val )

◆ NIBBLE_UP_SET

#define NIBBLE_UP_SET ( _p)
Value:
#define nibble_up_set(_port)
Definition gpio.h:382

◆ nibble_up_set

#define nibble_up_set ( _port)
Value:

◆ NIBBLE_UP_SET_HI

#define NIBBLE_UP_SET_HI   NIBBLE_UP_SET

◆ nibble_up_set_hi

#define nibble_up_set_hi   nibble_up_set

◆ NIBBLE_UP_SET_IN

#define NIBBLE_UP_SET_IN ( _p)
Value:
#define nibble_up_set_in(_ddr)
Definition gpio.h:376

◆ nibble_up_set_in

#define nibble_up_set_in ( _ddr)
Value:

◆ NIBBLE_UP_SET_IN_PU

#define NIBBLE_UP_SET_IN_PU ( _p)
Value:
#define nibble_up_set_in_pu(_ddr, _port)
Definition gpio.h:400

◆ nibble_up_set_in_pu

#define nibble_up_set_in_pu ( _ddr,
_port )
Value:

◆ NIBBLE_UP_SET_IN_Z

#define NIBBLE_UP_SET_IN_Z ( _p)
Value:
#define nibble_up_set_in_z(_ddr, _port)
Definition gpio.h:397

◆ nibble_up_set_in_z

#define nibble_up_set_in_z ( _ddr,
_port )
Value:

◆ NIBBLE_UP_SET_LO

#define NIBBLE_UP_SET_LO   NIBBLE_UP_CLEAR

◆ nibble_up_set_lo

#define nibble_up_set_lo   nibble_up_clear

◆ NIBBLE_UP_SET_OUT

#define NIBBLE_UP_SET_OUT ( _p)
Value:
#define nibble_up_set_out(_ddr)
Definition gpio.h:379

◆ nibble_up_set_out

#define nibble_up_set_out ( _ddr)

◆ NIBBLE_UP_SET_OUT_D_HI

#define NIBBLE_UP_SET_OUT_D_HI ( _p)
Value:
#define nibble_up_set_out_d_hi(_ddr, _port)
Definition gpio.h:406

◆ nibble_up_set_out_d_hi

#define nibble_up_set_out_d_hi ( _ddr,
_port )
Value:

◆ NIBBLE_UP_SET_OUT_D_LO

#define NIBBLE_UP_SET_OUT_D_LO ( _p)
Value:
#define nibble_up_set_out_d_lo(_ddr, _port)
Definition gpio.h:403

◆ nibble_up_set_out_d_lo

#define nibble_up_set_out_d_lo ( _ddr,
_port )
Value:

◆ NIBBLE_UP_SWITCH

#define NIBBLE_UP_SWITCH ( _p)
Value:
#define nibble_up_switch(_port)
Definition gpio.h:388

◆ nibble_up_switch

#define nibble_up_switch ( _port)
Value:

◆ NIBBLE_UP_TO_READ

#define NIBBLE_UP_TO_READ   NIBBLE_UP_SET_IN

◆ nibble_up_to_read

#define nibble_up_to_read   nibble_up_set_in

◆ NIBBLE_UP_TO_READ_PU

#define NIBBLE_UP_TO_READ_PU   NIBBLE_UP_SET_IN_PU

◆ nibble_up_to_read_pu

#define nibble_up_to_read_pu   nibble_up_set_in_pu

◆ NIBBLE_UP_TO_READ_Z

#define NIBBLE_UP_TO_READ_Z   NIBBLE_UP_SET_IN_Z

◆ nibble_up_to_read_z

#define nibble_up_to_read_z   nibble_up_set_in_z

◆ NIBBLE_UP_TO_WRITE

#define NIBBLE_UP_TO_WRITE   NIBBLE_UP_SET_OUT

◆ nibble_up_to_write

#define nibble_up_to_write   nibble_up_set_out

◆ NIBBLE_UP_TO_WRITE_D_HI

#define NIBBLE_UP_TO_WRITE_D_HI   NIBBLE_UP_SET_OUT_D_HI

◆ nibble_up_to_write_d_hi

#define nibble_up_to_write_d_hi   nibble_up_set_out_d_hi

◆ NIBBLE_UP_TO_WRITE_D_LO

#define NIBBLE_UP_TO_WRITE_D_LO   NIBBLE_UP_SET_OUT_D_LO

◆ nibble_up_to_write_d_lo

#define nibble_up_to_write_d_lo   nibble_up_set_out_d_lo

◆ NIBBLE_UP_WRITE

#define NIBBLE_UP_WRITE   NIBBLE_UP_REPLACE

◆ nibble_up_write

#define nibble_up_write   nibble_up_replace

◆ PIN_CLEAR

#define PIN_CLEAR ( _p,
_b )
Value:
#define pin_clear(_port, _b)
Definition gpio.h:454

◆ pin_clear

#define pin_clear ( _port,
_b )
Value:
port_clear((_port), _BV((_b)))

◆ PIN_OFF

#define PIN_OFF   PIN_CLEAR

◆ pin_off

#define pin_off   pin_clear

◆ PIN_ON

#define PIN_ON   PIN_SET

◆ pin_on

#define pin_on   pin_set

◆ PIN_PULL_UP

#define PIN_PULL_UP   PIN_SET

◆ pin_pull_up

#define pin_pull_up   pin_set

◆ PIN_READ

#define PIN_READ ( _p,
_b )
Value:
#define pin_read(_pin, _b)
Definition gpio.h:463

◆ pin_read

#define pin_read ( _pin,
_b )
Value:
port_read((_pin), (_BV((_b))))

◆ PIN_REPLACE

#define PIN_REPLACE ( _p,
_b,
_val )
Value:
pin_replace(MAKE_PORT_NAME(_p), (_b), (_val))
#define pin_replace(_port, _b, _val)
Definition gpio.h:460

◆ pin_replace

#define pin_replace ( _port,
_b,
_val )
Value:
port_replace((_port), _BV((_b)), (_val))

◆ PIN_SET

#define PIN_SET ( _p,
_b )
Value:
#define pin_set(_port, _b)
Definition gpio.h:451

◆ pin_set

#define pin_set ( _port,
_b )
Value:
port_set((_port), _BV((_b)))

◆ PIN_SET_HI

#define PIN_SET_HI   PIN_SET

◆ pin_set_hi

#define pin_set_hi   pin_set

◆ PIN_SET_IN

#define PIN_SET_IN ( _p,
_b )
Value:
#define pin_set_in(_ddr, _b)
Definition gpio.h:445

◆ pin_set_in

#define pin_set_in ( _ddr,
_b )
Value:
port_set_in((_ddr), _BV((_b)))

◆ PIN_SET_IN_PU

#define PIN_SET_IN_PU ( _p,
_b )
Value:
#define pin_set_in_pu(_ddr, _port, _b)
Definition gpio.h:469

◆ pin_set_in_pu

#define pin_set_in_pu ( _ddr,
_port,
_b )
Value:
port_set_in_pu((_ddr), (_port), _BV((_b)))

◆ PIN_SET_IN_Z

#define PIN_SET_IN_Z ( _p,
_b )
Value:
#define pin_set_in_z(_ddr, _port, _b)
Definition gpio.h:466

◆ pin_set_in_z

#define pin_set_in_z ( _ddr,
_port,
_b )
Value:
port_set_in_z((_ddr), (_port), _BV((_b)))

◆ PIN_SET_LO

#define PIN_SET_LO   PIN_CLEAR

◆ pin_set_lo

#define pin_set_lo   pin_clear

◆ PIN_SET_OUT

#define PIN_SET_OUT ( _p,
_b )
Value:
#define pin_set_out(_ddr, _b)
Definition gpio.h:448

◆ pin_set_out

#define pin_set_out ( _ddr,
_b )
Value:
port_set_out((_ddr), _BV((_b)))

◆ PIN_SET_OUT_D_HI

#define PIN_SET_OUT_D_HI ( _p,
_b )
Value:
#define pin_set_out_d_hi(_ddr, _port, _b)
Definition gpio.h:475

◆ pin_set_out_d_hi

#define pin_set_out_d_hi ( _ddr,
_port,
_b )
Value:
port_set_out_d_hi((_ddr), (_port), _BV((_b)))

◆ PIN_SET_OUT_D_LO

#define PIN_SET_OUT_D_LO ( _p,
_b )
Value:
#define pin_set_out_d_lo(_ddr, _port, _b)
Definition gpio.h:472

◆ pin_set_out_d_lo

#define pin_set_out_d_lo ( _ddr,
_port,
_b )
Value:
port_set_out_d_lo((_ddr), (_port), _BV((_b)))

◆ PIN_SWITCH

#define PIN_SWITCH ( _p,
_b )
Value:
#define pin_switch(_port, _b)
Definition gpio.h:457

◆ pin_switch

#define pin_switch ( _port,
_b )
Value:
port_switch((_port), _BV((_b)))

◆ PIN_TO_READ

#define PIN_TO_READ   PIN_SET_IN

◆ pin_to_read

#define pin_to_read   pin_set_in

◆ PIN_TO_READ_PU

#define PIN_TO_READ_PU   PIN_SET_IN_PU

◆ pin_to_read_pu

#define pin_to_read_pu   pin_set_in_pu

◆ PIN_TO_READ_Z

#define PIN_TO_READ_Z   PIN_SET_IN_Z

◆ pin_to_read_z

#define pin_to_read_z   pin_set_in_z

◆ PIN_TO_WRITE

#define PIN_TO_WRITE   PIN_SET_OUT

◆ pin_to_write

#define pin_to_write   pin_set_out

◆ PIN_TO_WRITE_D_HI

#define PIN_TO_WRITE_D_HI   PIN_SET_OUT_D_HI

◆ pin_to_write_d_hi

#define pin_to_write_d_hi   pin_set_out_d_hi

◆ PIN_TO_WRITE_D_LO

#define PIN_TO_WRITE_D_LO   PIN_SET_OUT_D_LO

◆ pin_to_write_d_lo

#define pin_to_write_d_lo   pin_set_out_d_lo

◆ PIN_WRITE

#define PIN_WRITE   PIN_REPLACE

◆ pin_write

#define pin_write   pin_replace

◆ PORT_CLEAR

#define PORT_CLEAR ( _p,
_pinset )
Value:
port_clear(MAKE_PORT_NAME(_p), (_pinset))

◆ port_clear

#define port_clear ( _port,
_pinset )
Value:
((_port) &= ~(_pinset))

◆ PORT_PULL_UP

#define PORT_PULL_UP   PORT_SET

◆ port_pull_up

#define port_pull_up   port_set

◆ PORT_READ

#define PORT_READ ( _p,
_pinset )
Value:
port_read(MAKE_PIN_NAME(_p), (_pinset))

◆ port_read

#define port_read ( _pin,
_pinset )
Value:
(read_byte((_pin)) & (_pinset))
#define read_byte
The meaningful name alias for gpio_byte.
Definition gpio.h:207

◆ PORT_REPLACE

#define PORT_REPLACE ( _p,
_pinset,
_val )
Value:
port_replace(MAKE_PORT_NAME(_p), (_pinset), (_val))

◆ port_replace

#define port_replace ( _port,
_pinset,
_val )
Value:
((_port) = ((_port) & (~(_pinset))) | ((_val) & (_pinset)))

◆ PORT_SET

#define PORT_SET ( _p,
_pinset )
Value:
port_set(MAKE_PORT_NAME(_p), (_pinset))

◆ port_set

#define port_set ( _port,
_pinset )
Value:
((_port) |= (_pinset))

◆ PORT_SET_HI

#define PORT_SET_HI   PORT_SET

◆ port_set_hi

#define port_set_hi   port_set

◆ PORT_SET_IN

#define PORT_SET_IN ( _p,
_pinset )
Value:
port_set_in(MAKE_DDR_NAME(_p), (_pinset))

◆ port_set_in

#define port_set_in ( _ddr,
_pinset )
Value:
((_ddr) &= ~(_pinset))

◆ PORT_SET_IN_PU

#define PORT_SET_IN_PU ( _p,
_pinset )
Value:

◆ port_set_in_pu

#define port_set_in_pu ( _ddr,
_port,
_pinset )
Value:
port_set_in((_ddr), (_pinset)); port_pull_up((_port), (_pinset))
#define port_pull_up
Definition gpio.h:279

◆ PORT_SET_IN_Z

#define PORT_SET_IN_Z ( _p,
_pinset )
Value:

◆ port_set_in_z

#define port_set_in_z ( _ddr,
_port,
_pinset )
Value:
port_set_in((_ddr), (_pinset)); port_clear((_port), (_pinset))

◆ PORT_SET_LO

#define PORT_SET_LO   PORT_CLEAR

◆ port_set_lo

#define port_set_lo   port_clear

◆ PORT_SET_OUT

#define PORT_SET_OUT ( _p,
_pinset )
Value:
port_set_out(MAKE_DDR_NAME(_p), (_pinset))

◆ port_set_out

#define port_set_out ( _ddr,
_pinset )
Value:
((_ddr) |= (_pinset))

◆ PORT_SET_OUT_D_HI

#define PORT_SET_OUT_D_HI ( _p,
_pinset )
Value:

◆ port_set_out_d_hi

#define port_set_out_d_hi ( _ddr,
_port,
_pinset )
Value:
port_set_out((_ddr), (_pinset)); port_set((_port), (_pinset))

◆ PORT_SET_OUT_D_LO

#define PORT_SET_OUT_D_LO ( _p,
_pinset )
Value:

◆ port_set_out_d_lo

#define port_set_out_d_lo ( _ddr,
_port,
_pinset )
Value:
port_set_out((_ddr), (_pinset)); port_clear((_port), (_pinset))

◆ PORT_SWITCH

#define PORT_SWITCH ( _p,
_pinset )
Value:
port_switch(MAKE_PORT_NAME(_p), (_pinset))

◆ port_switch

#define port_switch ( _port,
_pinset )
Value:
((_port) ^= (_pinset))

◆ PORT_TO_READ

#define PORT_TO_READ   PORT_SET_IN

◆ port_to_read

#define port_to_read   port_set_in

◆ PORT_TO_READ_PU

#define PORT_TO_READ_PU   PORT_SET_IN_PU

◆ port_to_read_pu

#define port_to_read_pu   port_set_in_pu

◆ PORT_TO_READ_Z

#define PORT_TO_READ_Z   PORT_SET_IN_Z

◆ port_to_read_z

#define port_to_read_z   port_set_in_z

◆ PORT_TO_WRITE

#define PORT_TO_WRITE   PORT_SET_OUT

◆ port_to_write

#define port_to_write   port_set_out

◆ PORT_TO_WRITE_D_HI

#define PORT_TO_WRITE_D_HI   PORT_SET_OUT_D_HI

◆ port_to_write_d_hi

#define port_to_write_d_hi   port_set_out_d_hi

◆ PORT_TO_WRITE_D_LO

#define PORT_TO_WRITE_D_LO   PORT_SET_OUT_D_LO

◆ port_to_write_d_lo

#define port_to_write_d_lo   port_set_out_d_lo

◆ PORT_WRITE

#define PORT_WRITE   PORT_REPLACE

◆ port_write

#define port_write   port_replace

◆ READ_BYTE

#define READ_BYTE   GPIO_BYTE

The meaningful name alias for GPIO_BYTE.

◆ read_byte

#define read_byte   gpio_byte

The meaningful name alias for gpio_byte.

◆ WRITE_BYTE

#define WRITE_BYTE   GPIO_SET

The meaningful name alias for GPIO_SET.

◆ write_byte

#define write_byte   gpio_set

The meaningful name alias for gpio_set.