/Zephyr-latest/dts/bindings/sensor/ |
D | st,stm32-qdec.yaml | 25 0x2: Encoder mode 2 60 1: Fs = F_clk, N=2 61 2: Fs = F_clk, N=4 62 3: Fs = F_clk, N=8 63 4: Fs = F_clk/2, N=6 64 5: Fs = F_clk/2, N=8 65 6: Fs = F_clk/4, N=6 66 7: Fs = F_clk/4, N=8 67 8: Fs = F_clk/8, N=6 68 9: Fs = F_clk/8, N=8 [all …]
|
D | invensense,icm42688.yaml | 19 accel-fs = <ICM42688_ACCEL_FS_16G>; 22 gyro-fs = <ICM42688_GYRO_FS_2000>; 44 - 2 # ICM42688_DT_ACCEL_LP 55 - 2 # ICM42688_DT_ACCEL_ODR_16000 70 accel-fs: 79 - 2 # ICM42688_DT_ACCEL_FS_4 101 - 2 # ICM42688_DT_GYRO_ODR_16000 113 gyro-fs: 122 - 2 # ICM42688_DT_GYRO_FS_500
|
/Zephyr-latest/tests/subsys/fs/zms/src/ |
D | main.c | 23 #include <zephyr/fs/zms.h> 39 struct zms_fs fs; member 56 fixture.fs.offset = TEST_ZMS_AREA_OFFSET; in setup() 57 err = flash_get_page_info_by_offs(flash_area_get_device(fa), fixture.fs.offset, &info); in setup() 60 fixture.fs.sector_size = info.size; in setup() 61 fixture.fs.sector_count = TEST_SECTOR_COUNT; in setup() 62 fixture.fs.flash_device = flash_area_get_device(fa); in setup() 87 if (fixture->fs.ready) { in after() 90 err = zms_clear(&fixture->fs); in after() 94 fixture->fs.sector_count = TEST_SECTOR_COUNT; in after() [all …]
|
/Zephyr-latest/tests/subsys/fs/nvs/src/ |
D | main.c | 24 #include <zephyr/fs/nvs.h> 41 struct nvs_fs fs; member 58 fixture.fs.offset = TEST_NVS_FLASH_AREA_OFFSET; in setup() 59 err = flash_get_page_info_by_offs(flash_area_get_device(fa), fixture.fs.offset, in setup() 63 fixture.fs.sector_size = info.size; in setup() 64 fixture.fs.sector_count = TEST_SECTOR_COUNT; in setup() 65 fixture.fs.flash_device = flash_area_get_device(fa); in setup() 90 if (fixture->fs.ready) { in after() 93 err = nvs_clear(&fixture->fs); in after() 97 fixture->fs.sector_count = TEST_SECTOR_COUNT; in after() [all …]
|
/Zephyr-latest/samples/subsys/nvs/ |
D | README.rst | 44 [fs/nvs] [DBG] nvs_reinit: (Re)Initializing sectors 45 [fs/nvs] [DBG] _nvs_sector_init: f->write_location set to c 46 [fs/nvs] [INF] nvs_mount: maximum storage length 256 byte 47 [fs/nvs] [INF] nvs_mount: write-align: 1, write-addr: c 48 [fs/nvs] [INF] nvs_mount: entry sector: 0, entry sector ID: 1 50 No key found, adding it at id 2 56 Rebooting in ...5...4...3...2...1 58 [fs/nvs] [INF] nvs_mount: maximum storage length 256 byte 59 [fs/nvs] [INF] nvs_mount: write-align: 1, write-addr: c7 60 [fs/nvs] [INF] nvs_mount: entry sector: 0, entry sector ID: 1 [all …]
|
/Zephyr-latest/samples/subsys/nvs/src/ |
D | main.c | 11 * 2. A binary blob representing a key: stored at id=2, data=FF FE FD FC FB FA 31 * use. The data with id=1, id=2 and id=3 is copied to the new sector. As a 47 #include <zephyr/fs/nvs.h> 49 static struct nvs_fs fs; variable 62 #define KEY_ID 2 81 fs.flash_device = NVS_PARTITION_DEVICE; in main() 82 if (!device_is_ready(fs.flash_device)) { in main() 83 printk("Flash device %s is not ready\n", fs.flash_device->name); in main() 86 fs.offset = NVS_PARTITION_OFFSET; in main() 87 rc = flash_get_page_info_by_offs(fs.flash_device, fs.offset, &info); in main() [all …]
|
/Zephyr-latest/subsys/fs/nvs/ |
D | nvs.c | 12 #include <zephyr/fs/nvs.h> 19 static int nvs_prev_ate(struct nvs_fs *fs, uint32_t *addr, struct nvs_ate *ate); 20 static int nvs_ate_valid(struct nvs_fs *fs, const struct nvs_ate *entry); 39 static int nvs_lookup_cache_rebuild(struct nvs_fs *fs) in nvs_lookup_cache_rebuild() argument 46 memset(fs->lookup_cache, 0xff, sizeof(fs->lookup_cache)); in nvs_lookup_cache_rebuild() 47 addr = fs->ate_wra; in nvs_lookup_cache_rebuild() 52 rc = nvs_prev_ate(fs, &addr, &ate); in nvs_lookup_cache_rebuild() 58 cache_entry = &fs->lookup_cache[nvs_lookup_cache_pos(ate.id)]; in nvs_lookup_cache_rebuild() 61 nvs_ate_valid(fs, &ate)) { in nvs_lookup_cache_rebuild() 65 if (addr == fs->ate_wra) { in nvs_lookup_cache_rebuild() [all …]
|
/Zephyr-latest/dts/bindings/audio/ |
D | nxp,dmic.yaml | 26 Use 2FS output, and bypass final half band decimator. This will reduce 51 compensation-2fs: 60 2FS compensation filter. See SOC reference manual for filter response 64 compensation-4fs: 73 4FS compensation filter. See SOC reference manual for filter response
|
/Zephyr-latest/subsys/fs/zms/ |
D | zms.c | 11 #include <zephyr/fs/zms.h> 18 static int zms_prev_ate(struct zms_fs *fs, uint64_t *addr, struct zms_ate *ate); 19 static int zms_ate_valid(struct zms_fs *fs, const struct zms_ate *entry); 20 static int zms_get_sector_cycle(struct zms_fs *fs, uint64_t addr, uint8_t *cycle_cnt); 21 static int zms_get_sector_header(struct zms_fs *fs, uint64_t addr, struct zms_ate *empty_ate, 23 static int zms_ate_valid_different_sector(struct zms_fs *fs, const struct zms_ate *entry, 43 static int zms_lookup_cache_rebuild(struct zms_fs *fs) in zms_lookup_cache_rebuild() argument 53 memset(fs->lookup_cache, 0xff, sizeof(fs->lookup_cache)); in zms_lookup_cache_rebuild() 54 addr = fs->ate_wra; in zms_lookup_cache_rebuild() 59 rc = zms_prev_ate(fs, &addr, &ate); in zms_lookup_cache_rebuild() [all …]
|
/Zephyr-latest/drivers/sensor/st/lis2du12/ |
D | lis2du12.c | 43 static const uint16_t lis2du12_accel_fs_map[] = {2, 4, 8, 16}; 88 static int lis2du12_accel_set_fs_raw(const struct device *dev, uint8_t fs) in lis2du12_accel_set_fs_raw() argument 99 mode.fs = fs; in lis2du12_accel_set_fs_raw() 104 data->accel_fs = fs; in lis2du12_accel_set_fs_raw() 149 int fs; in lis2du12_accel_range_set() local 152 fs = lis2du12_accel_range_to_fs_val(range); in lis2du12_accel_range_set() 153 if (fs < 0) { in lis2du12_accel_range_set() 154 return fs; in lis2du12_accel_range_set() 157 if (lis2du12_accel_set_fs_raw(dev, fs) < 0) { in lis2du12_accel_range_set() 162 data->acc_gain = lis2du12_accel_fs_map[fs] * GAIN_UNIT_XL / 2; in lis2du12_accel_range_set() [all …]
|
/Zephyr-latest/subsys/fs/ext2/ |
D | ext2_format.c | 9 #include <zephyr/fs/ext2.h> 96 int ext2_format(struct ext2_data *fs, struct ext2_cfg *cfg) in ext2_format() argument 105 uint32_t fs_memory = cfg->fs_size ? MIN(cfg->fs_size, fs->device_size) : fs->device_size; in ext2_format() 113 LOG_INF("[Memory] available:%lld requested:%d", fs->device_size, fs_memory); in ext2_format() 115 if (fs_memory > fs->device_size) { in ext2_format() 121 fs_memory -= CONFIG_EXT2_DISK_STARTING_SECTOR * fs->write_size; in ext2_format() 142 occupied_blocks = 2; in ext2_format() 195 struct ext2_block *sb_block = ext2_get_block(fs, first_data_block); in ext2_format() 196 struct ext2_block *bg_block = ext2_get_block(fs, bg_block_num); in ext2_format() 197 struct ext2_block *bbitmap_block = ext2_get_block(fs, bbitmap_block_num); in ext2_format() [all …]
|
D | ext2_diskops.c | 9 #include <zephyr/fs/fs.h> 25 static int get_level_offsets(struct ext2_data *fs, uint32_t block, uint32_t offsets[4]); 26 static inline uint32_t get_ngroups(struct ext2_data *fs); 201 int ext2_fetch_superblock(struct ext2_data *fs) in ext2_fetch_superblock() argument 206 if (fs->block_size == 1024) { in ext2_fetch_superblock() 208 b = ext2_get_block(fs, 1); in ext2_fetch_superblock() 211 b = ext2_get_block(fs, 0); in ext2_fetch_superblock() 220 fill_sblock(&fs->sblock, disk_sb); in ext2_fetch_superblock() 226 static inline uint32_t get_ngroups(struct ext2_data *fs) in get_ngroups() argument 229 fs->sblock.s_blocks_count / fs->sblock.s_blocks_per_group; in get_ngroups() [all …]
|
D | ext2_struct.h | 53 uint8_t s_align[2]; 146 struct ext2_data *fs; /* pointer to file system data */ member 219 int64_t (*get_device_size)(struct ext2_data *fs); 220 int64_t (*get_write_size)(struct ext2_data *fs); 221 int (*read_block)(struct ext2_data *fs, void *buf, uint32_t num); 222 int (*write_block)(struct ext2_data *fs, const void *buf, uint32_t num); 223 int (*read_superblock)(struct ext2_data *fs, struct ext2_disk_superblock *sb); 224 int (*sync)(struct ext2_data *fs); 227 #define MAX_INODES (CONFIG_MAX_FILES + 2) 238 uint32_t block_size; /* fs block size */
|
/Zephyr-latest/include/zephyr/fs/ |
D | nvs.h | 44 * - high 2 bytes correspond to the sector 45 * - low 2 bytes are the offset in the sector 79 * @brief Mount an NVS file system onto the flash device specified in @p fs. 81 * @param fs Pointer to file system 85 int nvs_mount(struct nvs_fs *fs); 90 * @param fs Pointer to file system 94 int nvs_clear(struct nvs_fs *fs); 104 * @param fs Pointer to file system 113 ssize_t nvs_write(struct nvs_fs *fs, uint16_t id, const void *data, size_t len); 118 * @param fs Pointer to file system [all …]
|
/Zephyr-latest/drivers/sensor/st/lsm6dso/ |
D | lsm6dso.c | 50 static const uint16_t lsm6dso_accel_fs_map[] = {2, 16, 4, 8}; 65 static int lsm6dso_accel_fs_val_to_gain(int fs, bool double_range) in lsm6dso_accel_fs_val_to_gain() argument 67 /* Range of ±2G has a LSB of GAIN_UNIT_XL, thus divide by 2 */ in lsm6dso_accel_fs_val_to_gain() 69 lsm6dso_accel_fs_map[fs] * GAIN_UNIT_XL : in lsm6dso_accel_fs_val_to_gain() 70 lsm6dso_accel_fs_map[fs] * GAIN_UNIT_XL / 2; in lsm6dso_accel_fs_val_to_gain() 74 static const uint16_t lsm6dso_gyro_fs_sens[] = {2, 1, 4, 0, 8, 0, 16}; 104 static int lsm6dso_accel_set_fs_raw(const struct device *dev, uint8_t fs) in lsm6dso_accel_set_fs_raw() argument 110 if (lsm6dso_xl_full_scale_set(ctx, fs) < 0) { in lsm6dso_accel_set_fs_raw() 114 data->accel_fs = fs; in lsm6dso_accel_set_fs_raw() 134 static int lsm6dso_gyro_set_fs_raw(const struct device *dev, uint8_t fs) in lsm6dso_gyro_set_fs_raw() argument [all …]
|
/Zephyr-latest/drivers/sensor/st/lsm9ds1/ |
D | lsm9ds1.c | 24 * The index 2 is never used : the value `0` is just a placeholder. 26 static const uint16_t lsm9ds1_gyro_fs_sens[] = {1, 2, 0, 8}; 67 case 2: in lsm9ds1_accel_range_to_fs_val() 94 static int lsm9ds1_accel_fs_val_to_gain(int fs) in lsm9ds1_accel_fs_val_to_gain() argument 96 return lsm9ds1_accel_fs_sens[fs]; in lsm9ds1_accel_fs_val_to_gain() 273 int fs; in lsm9ds1_accel_range_set() local 279 fs = lsm9ds1_accel_range_to_fs_val(range); in lsm9ds1_accel_range_set() 280 if (fs < 0) { in lsm9ds1_accel_range_set() 282 return fs; in lsm9ds1_accel_range_set() 285 ret = lsm9ds1_xl_full_scale_set(ctx, fs); in lsm9ds1_accel_range_set() [all …]
|
/Zephyr-latest/drivers/sensor/st/lsm6dso16is/ |
D | lsm6dso16is.c | 52 static const uint16_t lsm6dso16is_accel_fs_map[] = {2, 16, 4, 8}; 68 static const uint16_t lsm6dso16is_gyro_fs_sens[] = {2, 1, 4, 0, 8, 0, 16}; 98 static int lsm6dso16is_accel_set_fs_raw(const struct device *dev, uint8_t fs) in lsm6dso16is_accel_set_fs_raw() argument 104 if (lsm6dso16is_xl_full_scale_set(ctx, fs) < 0) { in lsm6dso16is_accel_set_fs_raw() 108 data->accel_fs = fs; in lsm6dso16is_accel_set_fs_raw() 128 static int lsm6dso16is_gyro_set_fs_raw(const struct device *dev, uint8_t fs) in lsm6dso16is_gyro_set_fs_raw() argument 133 if (lsm6dso16is_gy_full_scale_set(ctx, fs) < 0) { in lsm6dso16is_gyro_set_fs_raw() 171 int fs; in lsm6dso16is_accel_range_set() local 174 fs = lsm6dso16is_accel_range_to_fs_val(range); in lsm6dso16is_accel_range_set() 175 if (fs < 0) { in lsm6dso16is_accel_range_set() [all …]
|
/Zephyr-latest/samples/subsys/fs/format/ |
D | README.rst | 1 .. zephyr:code-sample:: fs-format 11 devices for different file systems. There are 2 scenarios prepared for this 30 :zephyr-app: samples/subsys/fs/format 38 :zephyr-app: samples/subsys/fs/format 51 I: FS at flash-controller@4001e000:0x7a000 is 6 0x1000-byte blocks with 512 cycle
|
/Zephyr-latest/tests/subsys/fs/ext2/src/ |
D | testfs_open_flags.c | 8 #include <zephyr/fs/fs.h> 9 #include <zephyr/fs/ext2.h> 42 zassert_equal(ret, 0, "Failed to mkfs with 2K blocks"); in ZTEST() 66 zassert_equal(ret, 0, "Failed to mkfs with 2K blocks"); in ZTEST()
|
/Zephyr-latest/samples/subsys/fs/zms/src/ |
D | main.c | 16 #include <zephyr/fs/zms.h> 18 static struct zms_fs fs; variable 26 #define CNT_ID 2 32 static int delete_and_verify_items(struct zms_fs *fs, uint32_t id) in delete_and_verify_items() argument 36 rc = zms_delete(fs, id); in delete_and_verify_items() 40 rc = zms_get_data_length(fs, id); in delete_and_verify_items() 54 static int delete_basic_items(struct zms_fs *fs) in delete_basic_items() argument 58 rc = delete_and_verify_items(fs, IP_ADDRESS_ID); in delete_basic_items() 63 rc = delete_and_verify_items(fs, KEY_VALUE_ID); in delete_basic_items() 68 rc = delete_and_verify_items(fs, CNT_ID); in delete_basic_items() [all …]
|
/Zephyr-latest/subsys/fs/ |
D | Kconfig.fatfs | 28 bool "mkfs support for FAT FS" 56 int "Max number of entries in FAT FS root directory" 103 4: 0 = Seconds/2 (0..29) 140 ELM FAT module, by setting its value to 2. 155 default 2 if FS_FATFS_LFN_MODE_STACK 166 The working buffer occupies (FS_FATFS_MAX_LFN + 1) * 2 bytes and 183 852 - Latin 2 193 869 - Greek 2 228 Specifies minimum sector size the FAT FS driver is expected to 230 device with FAT FS or all connected devices use the same [all …]
|
D | Kconfig | 25 module = FS 26 module-str = fs 30 bool "Link 'app' with FS" 33 Add FS header files to the 'app' include path. It may be 34 disabled if the include paths for FS are causing aliasing 39 default 2
|
/Zephyr-latest/drivers/sensor/st/lis2de12/ |
D | lis2de12.c | 42 uint16_t fs; member 47 {2, 15600}, 58 if (range == lis2de12_accel_fs_map[i].fs) { in lis2de12_accel_range_to_fs_val() 66 static int lis2de12_accel_set_fs_raw(const struct device *dev, uint8_t fs) in lis2de12_accel_set_fs_raw() argument 72 if (lis2de12_full_scale_set(ctx, fs) < 0) { in lis2de12_accel_set_fs_raw() 76 data->accel_fs = fs; in lis2de12_accel_set_fs_raw() 115 int fs; in lis2de12_accel_range_set() local 118 fs = lis2de12_accel_range_to_fs_val(range); in lis2de12_accel_range_set() 119 if (fs < 0) { in lis2de12_accel_range_set() 120 return fs; in lis2de12_accel_range_set() [all …]
|
/Zephyr-latest/drivers/sensor/st/ism330dhcx/ |
D | ism330dhcx.c | 53 static const uint16_t ism330dhcx_accel_fs_map[] = {2, 16, 4, 8}; 54 static const uint16_t ism330dhcx_accel_fs_sens[] = {1, 8, 2, 4}; 75 * ISM330DHCX_125dps = 2, 89 2, 32, 1, 0, 4, 121 static int ism330dhcx_accel_set_fs_raw(const struct device *dev, uint8_t fs) in ism330dhcx_accel_set_fs_raw() argument 125 if (ism330dhcx_xl_full_scale_set(data->ctx, fs) < 0) { in ism330dhcx_accel_set_fs_raw() 129 data->accel_fs = fs; in ism330dhcx_accel_set_fs_raw() 147 static int ism330dhcx_gyro_set_fs_raw(const struct device *dev, uint8_t fs) in ism330dhcx_gyro_set_fs_raw() argument 151 if (ism330dhcx_gy_full_scale_set(data->ctx, fs) < 0) { in ism330dhcx_gyro_set_fs_raw() 188 int fs; in ism330dhcx_accel_range_set() local [all …]
|
/Zephyr-latest/drivers/sensor/st/lsm6dsv16x/ |
D | lsm6dsv16x.c | 42 /* High Accuracy 2 */ 72 static const uint16_t lsm6dsv16x_accel_fs_map[] = {2, 4, 8, 16}; 89 static const uint16_t lsm6dsv16x_gyro_fs_sens[] = {1, 2, 4, 8, 16, 0, 0, 0, 0, 0, 0, 0, 32}; 91 int lsm6dsv16x_calc_accel_gain(uint8_t fs) in lsm6dsv16x_calc_accel_gain() argument 93 return lsm6dsv16x_accel_fs_map[fs] * GAIN_UNIT_XL / 2; in lsm6dsv16x_calc_accel_gain() 96 int lsm6dsv16x_calc_gyro_gain(uint8_t fs) in lsm6dsv16x_calc_gyro_gain() argument 98 return lsm6dsv16x_gyro_fs_sens[fs] * GAIN_UNIT_G; in lsm6dsv16x_calc_gyro_gain() 114 static int lsm6dsv16x_accel_set_fs_raw(const struct device *dev, uint8_t fs) in lsm6dsv16x_accel_set_fs_raw() argument 121 switch (fs) { in lsm6dsv16x_accel_set_fs_raw() 128 case 2: in lsm6dsv16x_accel_set_fs_raw() [all …]
|