Bare Metal Programming Tool Kit
|
interface for a (74)HC595 SPI output shift register More...
#include <hc595.h>
Additional Inherited Members | |
Public Types inherited from bmptk::hardware::port_buffer_out< hc595_channel< channel > > | |
typedef single_pin< 0 > | pin_0 |
pin 0, output-only | |
typedef single_pin< 1 > | pin_1 |
pin 1, output-only | |
typedef single_pin< 2 > | pin_2 |
pin 2, output-only | |
typedef single_pin< 3 > | pin_3 |
pin 3, output-only | |
typedef single_pin< 4 > | pin_4 |
pin 4, output-only | |
typedef single_pin< 5 > | pin_5 |
pin 5, output-only | |
typedef single_pin< 6 > | pin_6 |
pin 6, output-only | |
typedef single_pin< 7 > | pin_7 |
pin 7, output-only | |
Static Public Member Functions inherited from bmptk::hardware::port_buffer_out< hc595_channel< channel > > | |
static void | init () |
initialize the port as output | |
static void | set (unsigned int x) |
set the curret level on the pins in the port | |
static int | n_pins () |
return the number of pins in this port (8) | |
interface for a (74)HC595 SPI output shift register
This class implements a simple interface for a (74)HC595 8-bit SPI output shift register.
The TPIC6C595 chip has a compatible interface, but features open-drain high-current (100 mA) MOSFET outputs.