update SPI register interface

This commit is contained in:
Stanislaw Kaushanski 2024-12-09 12:09:22 +01:00
parent 097765d92b
commit 7a3360d072

View File

@ -3,7 +3,7 @@
* *
* SPDX-License-Identifier: Apache-2.0 * 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 * by peakrdl_mnrs version 1.2.9
*/ */
@ -45,9 +45,9 @@ typedef struct {
#define APB3SPI_DATA_READ_MASK 0x1 #define APB3SPI_DATA_READ_MASK 0x1
#define APB3SPI_DATA_READ(V) ((V & APB3SPI_DATA_READ_MASK) << APB3SPI_DATA_READ_OFFS) #define APB3SPI_DATA_READ(V) ((V & APB3SPI_DATA_READ_MASK) << APB3SPI_DATA_READ_OFFS)
#define APB3SPI_DATA_KIND_OFFS 11 #define APB3SPI_DATA_SSGEN_OFFS 11
#define APB3SPI_DATA_KIND_MASK 0x1 #define APB3SPI_DATA_SSGEN_MASK 0x1
#define APB3SPI_DATA_KIND(V) ((V & APB3SPI_DATA_KIND_MASK) << APB3SPI_DATA_KIND_OFFS) #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_OFFS 31
#define APB3SPI_DATA_RX_DATA_INVALID_MASK 0x1 #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){ inline void set_apb3spi_data_read(volatile apb3spi_t* reg, uint8_t value){
reg->DATA = (reg->DATA & ~(0x1U << 9)) | (value << 9); 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; 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); reg->DATA = (reg->DATA & ~(0x1U << 11)) | (value << 11);
} }
inline uint32_t get_apb3spi_data_rx_data_invalid(volatile apb3spi_t* reg){ inline uint32_t get_apb3spi_data_rx_data_invalid(volatile apb3spi_t* reg){