From 7a3360d0720675e1ba1e443351d66316c577404c Mon Sep 17 00:00:00 2001 From: stas Date: Mon, 9 Dec 2024 12:09:22 +0100 Subject: [PATCH] update SPI register interface --- include/ehrenberg/devices/gen/apb3spi.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/ehrenberg/devices/gen/apb3spi.h b/include/ehrenberg/devices/gen/apb3spi.h index 9bfd642..c849e91 100644 --- a/include/ehrenberg/devices/gen/apb3spi.h +++ b/include/ehrenberg/devices/gen/apb3spi.h @@ -3,7 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 * -* Generated at 2024-09-10 14:29:50 UTC +* Generated at 2024-12-06 09:43:24 UTC * by peakrdl_mnrs version 1.2.9 */ @@ -45,9 +45,9 @@ typedef struct { #define APB3SPI_DATA_READ_MASK 0x1 #define APB3SPI_DATA_READ(V) ((V & APB3SPI_DATA_READ_MASK) << APB3SPI_DATA_READ_OFFS) -#define APB3SPI_DATA_KIND_OFFS 11 -#define APB3SPI_DATA_KIND_MASK 0x1 -#define APB3SPI_DATA_KIND(V) ((V & APB3SPI_DATA_KIND_MASK) << APB3SPI_DATA_KIND_OFFS) +#define APB3SPI_DATA_SSGEN_OFFS 11 +#define APB3SPI_DATA_SSGEN_MASK 0x1 +#define APB3SPI_DATA_SSGEN(V) ((V & APB3SPI_DATA_SSGEN_MASK) << APB3SPI_DATA_SSGEN_OFFS) #define APB3SPI_DATA_RX_DATA_INVALID_OFFS 31 #define APB3SPI_DATA_RX_DATA_INVALID_MASK 0x1 @@ -179,10 +179,10 @@ inline uint32_t get_apb3spi_data_read(volatile apb3spi_t* reg){ inline void set_apb3spi_data_read(volatile apb3spi_t* reg, uint8_t value){ reg->DATA = (reg->DATA & ~(0x1U << 9)) | (value << 9); } -inline uint32_t get_apb3spi_data_kind(volatile apb3spi_t* reg){ +inline uint32_t get_apb3spi_data_ssgen(volatile apb3spi_t* reg){ return (reg->DATA >> 11) & 0x1; } -inline void set_apb3spi_data_kind(volatile apb3spi_t* reg, uint8_t value){ +inline void set_apb3spi_data_ssgen(volatile apb3spi_t* reg, uint8_t value){ reg->DATA = (reg->DATA & ~(0x1U << 11)) | (value << 11); } inline uint32_t get_apb3spi_data_rx_data_invalid(volatile apb3spi_t* reg){