const SPP_HalPort_t * SPP_HAL_getPort(void)
This function is used to get the pointers to the functions that are used by the SPP library....
SPP_RetVal_t SPP_HAL_init(void *p_halPorts)
This functions initializes the ports struct and initializes all the peripherals.
Standard return-value type used across all SPP modules.
SPP_RetVal_t
Unified return type for all SPP API functions.
GPIO struct that contains all the pointers to the GPIO functions.
SPP_RetVal_t(*) gpioConfigInterrupt(spp_uint32_t pin, spp_uint32_t intrType, spp_uint32_t pull)
Configure a GPIO pin as an interrupt input.
SPP_RetVal_t(*) gpioRegisterIsr(spp_uint32_t pin, void *p_isrCtx)
Register an ISR handler for a GPIO pin.
SPI bus struct that contains all the pointers to the SPI functions.
SPP_RetVal_t(*) spiDeviceInit(void *p_handle)
Initialise a specific SPI device.
SPP_RetVal_t(*) spiBusInit(void)
Initialise the SPI bus.
SPP_RetVal_t(*) spiTransmit(void *p_handle, spp_uint8_t *p_data, spp_uint8_t length)
Perform a full-duplex SPI transaction.
SPP_RetVal_t(*) spiDeviceSetSpeed(void *p_handle, spp_uint32_t speedHz)
Remove and re-add a SPI device with a new clock speed.
Storage struct that contains all the pointers to the storage functions.
SPP_RetVal_t(*) storageWrite(const void *p_buffer, spp_uint32_t first_block, spp_uint16_t count)
Write consecutive blocks to the storage device.
SPP_RetVal_t(*) storageInit(void)
Initialize the storage device.
Time struct that contains all the pointers to the Time functions.
spp_uint32_t(*) getTimeUs(void)
Return the current hardware time in microseconds.
spp_uint32_t(*) getTimeMs(void)
Return the current hardware time in milliseconds.
void(*) delayMs(spp_uint32_t ms)
Block for the requested number of milliseconds.
UART port struct that contains all the pointers to the UART functions.
SPP_RetVal_t(*) uartTransmit(const void *p_data, spp_uint32_t len)
Perform an UART transaction.
SPP_RetVal_t(*) uartPortInit(void)
Initialise the UART port.
SPP_RetVal_t(*) uartRead(void *p_data, spp_uint32_t len, spp_uint32_t *p_readBytes)
Reads data from the ESP32 UART.
Ports struct that contains all the pointers to the Ports functions.
Portable integer types and SPI/storage configuration types for SPP.