mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-08-19 00:15:05 +00:00
26 lines
488 B
C
26 lines
488 B
C
// SPDX-License-Identifier: Apache-2.0
|
|
#pragma once
|
|
|
|
#include <tactility/device.h>
|
|
#include <tactility/drivers/gpio.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
struct SpiPeripheralConfig {
|
|
struct GpioPinSpec pin_cs;
|
|
};
|
|
|
|
struct SpiPeripheralApi {
|
|
struct GpioDescriptor* (*get_cs_descriptor)(struct Device* device);
|
|
};
|
|
|
|
struct GpioDescriptor* spi_peripheral_get_cs_descriptor(struct Device* device);
|
|
|
|
extern const struct DeviceType SPI_PERIPHERAL_TYPE;
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|