Skip to content

File ShiftBus.cpp

FileList > Firmware > Libraries > PanelGroup > Helpers > ShiftBus > ShiftBus.cpp

Go to the source code of this file

More...

  • #include "ShiftBus.h"
  • #include <STM32Board.h>

Namespaces

Type Name
namespace OpenSkyhawk
Thin wrapper over Adafruit_ADS1115; see ADS1115.h .

Public Attributes

Type Name
OpenSkyhawk::ShiftBus ShiftBus1

Public Static Functions

Type Name
const SPISettings kShiftBusSettings (1000000, MSBFIRST, SPI_MODE0)

Macros

Type Name
define SHIFTBUS_LATCH PB9
define SHIFTBUS_LOAD PB8
define SHIFTBUS_MISO PB4
define SHIFTBUS_MOSI PB5
define SHIFTBUS_SCK PB3

Detailed Description

Copyright:

GPL-2.0-only — see Firmware/LICENSE

Public Attributes Documentation

variable ShiftBus1

OpenSkyhawk::ShiftBus ShiftBus1(SPI, PB3, PB4, PB5, PB8, PB9);

Public Static Functions Documentation

function kShiftBusSettings

static const SPISettings kShiftBusSettings (
    1000000,
    MSBFIRST,
    SPI_MODE0
) 

Macro Definition Documentation

define SHIFTBUS_LATCH

#define SHIFTBUS_LATCH `PB9`

define SHIFTBUS_LOAD

#define SHIFTBUS_LOAD `PB8`

define SHIFTBUS_MISO

#define SHIFTBUS_MISO `PB4`

define SHIFTBUS_MOSI

#define SHIFTBUS_MOSI `PB5`

define SHIFTBUS_SCK

#define SHIFTBUS_SCK `PB3`


The documentation for this class was generated from the following file Firmware/Libraries/PanelGroup/Helpers/ShiftBus/ShiftBus.cpp