diff --git a/include/ehrenberg/devices/gen/msgif.h b/include/ehrenberg/devices/gen/msgif.h index a199eb5..27a8f8b 100644 --- a/include/ehrenberg/devices/gen/msgif.h +++ b/include/ehrenberg/devices/gen/msgif.h @@ -3,7 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 * -* Generated at 2024-11-05 12:12:15 UTC +* Generated at 2024-11-20 11:54:52 UTC * by peakrdl_mnrs version 1.2.7 */ @@ -33,21 +33,21 @@ typedef struct { #define MSGIF_REG_SEND_MASK 0x1 #define MSGIF_REG_SEND(V) ((V & MSGIF_REG_SEND_MASK) << MSGIF_REG_SEND_OFFS) -#define MSGIF_REG_HEADER_RECIPIENT_COMPONENT_OFFS 0 -#define MSGIF_REG_HEADER_RECIPIENT_COMPONENT_MASK 0x7 -#define MSGIF_REG_HEADER_RECIPIENT_COMPONENT(V) ((V & MSGIF_REG_HEADER_RECIPIENT_COMPONENT_MASK) << MSGIF_REG_HEADER_RECIPIENT_COMPONENT_OFFS) +#define MSGIF_REG_HEADER_MESSAGE_ID_OFFS 0 +#define MSGIF_REG_HEADER_MESSAGE_ID_MASK 0xf +#define MSGIF_REG_HEADER_MESSAGE_ID(V) ((V & MSGIF_REG_HEADER_MESSAGE_ID_MASK) << MSGIF_REG_HEADER_MESSAGE_ID_OFFS) -#define MSGIF_REG_HEADER_RECIPIENT_CLUSTER_OFFS 3 -#define MSGIF_REG_HEADER_RECIPIENT_CLUSTER_MASK 0x3 -#define MSGIF_REG_HEADER_RECIPIENT_CLUSTER(V) ((V & MSGIF_REG_HEADER_RECIPIENT_CLUSTER_MASK) << MSGIF_REG_HEADER_RECIPIENT_CLUSTER_OFFS) - -#define MSGIF_REG_HEADER_MESSAGE_LENGTH_OFFS 5 +#define MSGIF_REG_HEADER_MESSAGE_LENGTH_OFFS 4 #define MSGIF_REG_HEADER_MESSAGE_LENGTH_MASK 0xf #define MSGIF_REG_HEADER_MESSAGE_LENGTH(V) ((V & MSGIF_REG_HEADER_MESSAGE_LENGTH_MASK) << MSGIF_REG_HEADER_MESSAGE_LENGTH_OFFS) -#define MSGIF_REG_HEADER_MESSAGE_ID_OFFS 9 -#define MSGIF_REG_HEADER_MESSAGE_ID_MASK 0xf -#define MSGIF_REG_HEADER_MESSAGE_ID(V) ((V & MSGIF_REG_HEADER_MESSAGE_ID_MASK) << MSGIF_REG_HEADER_MESSAGE_ID_OFFS) +#define MSGIF_REG_HEADER_RECIPIENT_COMPONENT_OFFS 8 +#define MSGIF_REG_HEADER_RECIPIENT_COMPONENT_MASK 0x7 +#define MSGIF_REG_HEADER_RECIPIENT_COMPONENT(V) ((V & MSGIF_REG_HEADER_RECIPIENT_COMPONENT_MASK) << MSGIF_REG_HEADER_RECIPIENT_COMPONENT_OFFS) + +#define MSGIF_REG_HEADER_RECIPIENT_CLUSTER_OFFS 11 +#define MSGIF_REG_HEADER_RECIPIENT_CLUSTER_MASK 0x3 +#define MSGIF_REG_HEADER_RECIPIENT_CLUSTER(V) ((V & MSGIF_REG_HEADER_RECIPIENT_CLUSTER_MASK) << MSGIF_REG_HEADER_RECIPIENT_CLUSTER_OFFS) #define MSGIF_REG_ACK_OFFS 0 #define MSGIF_REG_ACK_MASK 0x1 @@ -108,29 +108,29 @@ inline uint32_t get_msgif_REG_HEADER(volatile msgif_t* reg){ inline void set_msgif_REG_HEADER(volatile msgif_t* reg, uint32_t value){ reg->REG_HEADER = value; } -inline uint32_t get_msgif_REG_HEADER_RECIPIENT_COMPONENT(volatile msgif_t* reg){ - return (reg->REG_HEADER >> 0) & 0x7; -} -inline void set_msgif_REG_HEADER_RECIPIENT_COMPONENT(volatile msgif_t* reg, uint8_t value){ - reg->REG_HEADER = (reg->REG_HEADER & ~(0x7U << 0)) | (value << 0); -} -inline uint32_t get_msgif_REG_HEADER_RECIPIENT_CLUSTER(volatile msgif_t* reg){ - return (reg->REG_HEADER >> 3) & 0x3; -} -inline void set_msgif_REG_HEADER_RECIPIENT_CLUSTER(volatile msgif_t* reg, uint8_t value){ - reg->REG_HEADER = (reg->REG_HEADER & ~(0x3U << 3)) | (value << 3); -} -inline uint32_t get_msgif_REG_HEADER_MESSAGE_LENGTH(volatile msgif_t* reg){ - return (reg->REG_HEADER >> 5) & 0xf; -} -inline void set_msgif_REG_HEADER_MESSAGE_LENGTH(volatile msgif_t* reg, uint8_t value){ - reg->REG_HEADER = (reg->REG_HEADER & ~(0xfU << 5)) | (value << 5); -} inline uint32_t get_msgif_REG_HEADER_MESSAGE_ID(volatile msgif_t* reg){ - return (reg->REG_HEADER >> 9) & 0xf; + return (reg->REG_HEADER >> 0) & 0xf; } inline void set_msgif_REG_HEADER_MESSAGE_ID(volatile msgif_t* reg, uint8_t value){ - reg->REG_HEADER = (reg->REG_HEADER & ~(0xfU << 9)) | (value << 9); + reg->REG_HEADER = (reg->REG_HEADER & ~(0xfU << 0)) | (value << 0); +} +inline uint32_t get_msgif_REG_HEADER_MESSAGE_LENGTH(volatile msgif_t* reg){ + return (reg->REG_HEADER >> 4) & 0xf; +} +inline void set_msgif_REG_HEADER_MESSAGE_LENGTH(volatile msgif_t* reg, uint8_t value){ + reg->REG_HEADER = (reg->REG_HEADER & ~(0xfU << 4)) | (value << 4); +} +inline uint32_t get_msgif_REG_HEADER_RECIPIENT_COMPONENT(volatile msgif_t* reg){ + return (reg->REG_HEADER >> 8) & 0x7; +} +inline void set_msgif_REG_HEADER_RECIPIENT_COMPONENT(volatile msgif_t* reg, uint8_t value){ + reg->REG_HEADER = (reg->REG_HEADER & ~(0x7U << 8)) | (value << 8); +} +inline uint32_t get_msgif_REG_HEADER_RECIPIENT_CLUSTER(volatile msgif_t* reg){ + return (reg->REG_HEADER >> 11) & 0x3; +} +inline void set_msgif_REG_HEADER_RECIPIENT_CLUSTER(volatile msgif_t* reg, uint8_t value){ + reg->REG_HEADER = (reg->REG_HEADER & ~(0x3U << 11)) | (value << 11); } //MSGIF_REG_ACK