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"
|
2022-08-16 12:48:22 +02:00
|
|
|
#include "fsfw/returnvalues/returnvalue.h"
|
2022-02-02 10:29:30 +01:00
|
|
|
|
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_ */
|