Rework SPI interfaces

This commit is contained in:
Henrik Stickann
2022-04-19 23:20:20 +02:00
parent 4504ee9c3b
commit a468133c97
5 changed files with 51 additions and 78 deletions

View File

@@ -28,8 +28,8 @@ namespace sta
enum class SpiDataSize
{
BIT_8,
BIT_16
SIZE_8,
SIZE_16
};
enum class SpiBitOrder
@@ -40,14 +40,14 @@ namespace sta
enum class SpiBaudRatePrescaler
{
BRP_2,
BRP_4,
BRP_8,
BRP_16,
BRP_32,
BRP_64,
BRP_128,
BRP_256
DIV_2,
DIV_4,
DIV_8,
DIV_16,
DIV_32,
DIV_64,
DIV_128,
DIV_256
};
@@ -56,9 +56,7 @@ namespace sta
SpiMode mode;
SpiDataSize dataSize;
SpiBitOrder bitOrder;
uint32_t clkSpeed;
SpiBaudRatePrescaler baudRatePrescaler; /**< Subject to change */
};