/* * Copyright (c) 2023 Würth Elektronik eiSos GmbH & Co. KG * * SPDX-License-Identifier: Apache-2.0 */ #ifndef WEPLATFORM_SPI_H_INCLUDED #define WEPLATFORM_SPI_H_INCLUDED #include #include /* Read a register's content via SPI */ extern int8_t WE_ReadReg_SPI(WE_sensorInterface_t *interface, uint8_t regAdr, uint16_t numBytesToRead, uint8_t *data); /* Write a register's content via SPI */ extern int8_t WE_WriteReg_SPI(WE_sensorInterface_t *interface, uint8_t regAdr, uint16_t numBytesToWrite, uint8_t *data); #endif /* WEPLATFORM_SPI_H_INCLUDED */