Represents a SPI protocol for registration. More...
Data Fields | |
const char * | helpHtml |
const char * | protocolName |
bool(* | startProtocol )(uint16_t zeroBasedIndex) |
void(* | stopProtocol )(uint16_t zeroBasedIndex) |
Represents a SPI protocol for registration.
This struct designates the procedures to start and stop a Serial Peripheral Interface protocol. It it used with ltrx_spi_register_protocol().
Note that your struct must persist, so you will typically declare it static const
.
const char* ltrx_spi_protocol::helpHtml |
HTML help for SPI Protocol selection.
const char* ltrx_spi_protocol::protocolName |
Name of this protocol as it will appear in configuration menu choices.
bool(* ltrx_spi_protocol::startProtocol)(uint16_t zeroBasedIndex) |
Function that starts this protocol.
void(* ltrx_spi_protocol::stopProtocol)(uint16_t zeroBasedIndex) |
Function that stops this protocol.