fsfw/hal/src/fsfw_hal/linux/spi/spiDefinitions.h

26 lines
658 B
C
Raw Normal View History

2021-07-13 19:19:25 +02:00
#ifndef LINUX_SPI_SPIDEFINITONS_H_
#define LINUX_SPI_SPIDEFINITONS_H_
#include <linux/spi/spidev.h>
#include <cstdint>
2022-02-02 10:29:30 +01:00
#include "../../common/gpio/gpioDefinitions.h"
#include "../../common/spi/spiCommon.h"
#include "fsfw/returnvalues/HasReturnvaluesIF.h"
2021-07-13 19:19:25 +02:00
class SpiCookie;
class SpiComIF;
namespace spi {
2022-02-02 10:29:30 +01:00
enum SpiComIfModes { REGULAR, CALLBACK };
2021-07-13 19:19:25 +02:00
2022-02-02 10:29:30 +01:00
using send_callback_function_t = ReturnValue_t (*)(SpiComIF* comIf, SpiCookie* cookie,
const uint8_t* sendData, size_t sendLen,
void* args);
2021-07-13 19:19:25 +02:00
2022-02-02 10:29:30 +01:00
} // namespace spi
2021-07-13 19:19:25 +02:00
#endif /* LINUX_SPI_SPIDEFINITONS_H_ */