// // Created by cfif on 03.06.2024. // #ifndef SMART_COMPONENTS_SENSOR_H #define SMART_COMPONENTS_SENSOR_H #include "GpioPin.h" #include "SpiPorts.h" typedef struct { tGpioPin A; tGpioPin B; tGpioPin C; } tConABC; typedef struct { tConABC Con; tGpioPin En1; tGpioPin En2; } tConn; typedef struct { tConn COON_A_B9_B10; } tConns; typedef struct { tConns *conns; tSpiPorts *spiPorts; } tSensorSPI; void SensorSpi_Init(tSensorSPI *env, tSpiPorts *spiPorts, tConns *conns); bool setSpiSensor(tSensorSPI *env, uint16_t reg); #endif //SMART_COMPONENTS_SENSOR_H