GPIO I/O utility functions. More...

Detailed Description

GPIO I/O utility functions.

Files

file  gpio_util.h
 GPIO I/O utility function implementations.
 

Functions

uint8_t gpio_util_shiftin (gpio_t data_pin, gpio_t clock_pin)
 Shift in a byte from data_pin, create clock pulses on clock_pin. More...
 

Function Documentation

◆ gpio_util_shiftin()

uint8_t gpio_util_shiftin ( gpio_t  data_pin,
gpio_t  clock_pin 
)

Shift in a byte from data_pin, create clock pulses on clock_pin.

This function has the same functionality as the Arduino shiftIn() in Advanced I/O.

Parameters
[in]data_pinPin to read data from
clock_pinPin to create clock pulses on
Returns
the resulting uint8_t of the shift (MSB first)