fsfw/src/fsfw_hal/linux/spi/spiDefinitions.h
Robin Mueller 6f7be281ef
Some checks failed
fsfw/fsfw/pipeline/head There was a failure building this commit
move HAL and tests folder
2022-07-18 08:59:40 +02:00

26 lines
658 B
C++

#ifndef LINUX_SPI_SPIDEFINITONS_H_
#define LINUX_SPI_SPIDEFINITONS_H_
#include <linux/spi/spidev.h>
#include <cstdint>
#include "../../common/gpio/gpioDefinitions.h"
#include "../../common/spi/spiCommon.h"
#include "fsfw/returnvalues/HasReturnvaluesIF.h"
class SpiCookie;
class SpiComIF;
namespace spi {
enum SpiComIfModes { REGULAR, CALLBACK };
using send_callback_function_t = ReturnValue_t (*)(SpiComIF* comIf, SpiCookie* cookie,
const uint8_t* sendData, size_t sendLen,
void* args);
} // namespace spi
#endif /* LINUX_SPI_SPIDEFINITONS_H_ */