Skip to content

Class hal::lpc40::spi

ClassList > hal > lpc40 > spi

Inherits the following classes: hal::spi

Classes

Type Name
struct bus_info
Information used to configure the spi bus.

Public Static Attributes inherited from hal::spi

See hal::spi

Type Name
constexpr hal::byte default_filler = = hal::byte

Public Functions

Type Name
spi & operator= (spi & p_other) = delete
spi & operator= (spi && p_other) noexcept
spi (spi & p_other) = delete
spi (spi && p_other) noexcept
virtual ~spi ()

Public Functions inherited from hal::spi

See hal::spi

Type Name
status configure (const settings & p_settings)
Configure spi to match the settings supplied.
result< transfer_t > transfer (std::span< const hal::byte > p_data_out, std::span< hal::byte > p_data_in, hal::byte p_filler=default_filler)
Send and receive data between a selected device on the spi bus. This function will block until the entire transfer is finished.
virtual ~spi () = default

Public Static Functions

Type Name
result< spi > get (std::uint8_t p_bus, const spi::settings & p_settings={})

Public Functions Documentation

function operator=

spi & hal::lpc40::spi::operator= (
    spi & p_other
) = delete

function operator=

spi & hal::lpc40::spi::operator= (
    spi && p_other
) noexcept

function spi [1/3]

hal::lpc40::spi::spi (
    spi & p_other
) = delete

function spi [2/3]

hal::lpc40::spi::spi (
    spi && p_other
) noexcept

function ~spi

virtual hal::lpc40::spi::~spi () 

Implements hal::spi::~spi

Public Static Functions Documentation

function get

static result< spi > hal::lpc40::spi::get (
    std::uint8_t p_bus,
    const spi::settings & p_settings={}
) 

The documentation for this class was generated from the following file libraries/include/libhal-lpc40/spi.hpp