diff --git a/include/ehrenberg/devices/gen/camera.h b/include/ehrenberg/devices/gen/camera.h index 086cd2a..8c82317 100644 --- a/include/ehrenberg/devices/gen/camera.h +++ b/include/ehrenberg/devices/gen/camera.h @@ -3,7 +3,7 @@ * * SPDX-License-Identifier: Apache-2.0 * -* Generated at 2024-11-26 17:02:43 UTC +* Generated at 2024-11-27 09:36:49 UTC * by peakrdl_mnrs version 1.2.7 */ @@ -84,7 +84,7 @@ typedef struct { #define CAMERA_CONFIG_HIGH_SPEED(V) ((V & CAMERA_CONFIG_HIGH_SPEED_MASK) << CAMERA_CONFIG_HIGH_SPEED_OFFS) #define CAMERA_DATA_SIZE_OFFS 0 -#define CAMERA_DATA_SIZE_MASK 0xf +#define CAMERA_DATA_SIZE_MASK 0x3 #define CAMERA_DATA_SIZE(V) ((V & CAMERA_DATA_SIZE_MASK) << CAMERA_DATA_SIZE_OFFS) #define CAMERA_START_OFFS 0 @@ -223,10 +223,10 @@ inline void set_camera_data_size(volatile camera_t* reg, uint32_t value){ reg->DATA_SIZE = value; } inline uint32_t get_camera_data_size_data_size(volatile camera_t* reg){ - return (reg->DATA_SIZE >> 0) & 0xf; + return (reg->DATA_SIZE >> 0) & 0x3; } inline void set_camera_data_size_data_size(volatile camera_t* reg, uint8_t value){ - reg->DATA_SIZE = (reg->DATA_SIZE & ~(0xfU << 0)) | (value << 0); + reg->DATA_SIZE = (reg->DATA_SIZE & ~(0x3U << 0)) | (value << 0); } //CAMERA_START