fix readout datasize connection

This commit is contained in:
Stanislaw Kaushanski 2024-11-27 09:42:43 +01:00
parent 800dd52519
commit bd02644a2f

View File

@ -3,7 +3,7 @@
* *
* SPDX-License-Identifier: Apache-2.0 * 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 * 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_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_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_DATA_SIZE(V) ((V & CAMERA_DATA_SIZE_MASK) << CAMERA_DATA_SIZE_OFFS)
#define CAMERA_START_OFFS 0 #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; reg->DATA_SIZE = value;
} }
inline uint32_t get_camera_data_size_data_size(volatile camera_t* reg){ 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){ 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 //CAMERA_START