Home
last modified time | relevance | path

Searched +full:crc +full:- +full:enabled (Results 1 – 25 of 90) sorted by relevance

1234

/Zephyr-latest/drivers/gpio/
Dgpio_max149x6.h5 * SPDX-License-Identifier: Apache-2.0
26 * @param data - array of data to encode
27 * @param encode - action to be performed - true(encode), false(decode)
42 * https://www.analog.com/en/app-notes/how-to-program-the-max14906-quadchannel- in max149x6_crc()
43 * industrial-digital-output-digital-input.html in max149x6_crc()
47 data_bit = (data[0] >> (7 - i)) & 0x01; in max149x6_crc()
57 data_bit = (data[1] >> (7 - i)) & 0x01; in max149x6_crc()
67 data_bit = (extra_byte >> (7 - i)) & 0x01; in max149x6_crc()
82 * @param dev - MAX149x6 device config.
83 * @param addr - Register value to which data is written.
[all …]
Dgpio_max22190.c5 * SPDX-License-Identifier: Apache-2.0
23 #warning "GPIO MAX22190 driver enabled without any devices"
202 * @param data - Data array to calculate CRC for.
203 * @return CRC result.
214 * This is the C custom implementation of CRC function for MAX22190, and in max22190_crc()
216 * https://www.analog.com/en/design-notes/guidelines-to-implement-crc-algorithm.html in max22190_crc()
230 for (i = 0; i < length - 1; i++) { in max22190_crc()
232 ((datainput >> (length - 2 - i)) & 0x01)); in max22190_crc()
247 * @param dev - MAX22190 device.
248 * @param val - value to be set.
[all …]
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/radio/
Dradio_nrf5_resources.h4 * SPDX-License-Identifier: Apache-2.0
18 * or reception of a PDU on air. In case of regular PDU it is generated when last bit of CRC is
61 * or reception of a PDU on air. In case of regular PDU it is generated when last bit of CRC is
90 * or reception of a PDU on air. In case of regular PDU it is generated when last bit of CRC is
137 * PHY CODED S2. The CTEINLINE may not be enabled for PHY CODED so PHYEND event is generated
145 * or reception of a PDU on air. In case of regular PDU it is generated when last bit of CRC is
148 * When direction finding is enabled a PDU may include Constant Tone Extension at its end. For PDU
162 /* Delay of EVENTS_PHYEND event on receive PDU without CTE included when CTEINLINE is enabled */
170 * or reception of a PDU on air. In case of regular PDU it is generated when last bit of CRC is
/Zephyr-latest/soc/nuvoton/npcx/
DKconfig1 # Nuvoton Cortex-M4 Embedded Controller
4 # SPDX-License-Identifier: Apache-2.0
125 bool "Header crc check"
127 When enabled, the header will be verified at boot using a crc
131 bool "Firmware image crc check"
133 When enabled, the firmware image will be verified at boot using a
134 crc checksum.
/Zephyr-latest/dts/bindings/retention/
Dzephyr,retention.yaml2 # SPDX-License-Identifier: Apache-2.0
6 64-byte area with 2-byte prefix and 1-byte checksum with 61 usable bytes
10 compatible = "zephyr,memory-region", "mmio-sram";
12 zephyr,memory-region = "RetainedMem";
16 compatible = "zephyr,retained-ram";
18 #address-cells = <1>;
19 #size-cells = <1>;
36 "#address-cells":
43 "#size-cells":
47 prefix and checksum (if enabled).
[all …]
/Zephyr-latest/subsys/fs/nvs/
Dnvs_priv.h5 * SPDX-License-Identifier: Apache-2.0
34 * Allow to use the NVS_DATA_CRC_SIZE macro in computations whether data CRC is enabled or not
37 #define NVS_DATA_CRC_SIZE 4 /* CRC-32 size in bytes */
47 uint8_t part; /* part of a multipart data - future extension */
52 sizeof(struct nvs_ate) - sizeof(uint8_t),
/Zephyr-latest/lib/
DCMakeLists.txt1 # SPDX-License-Identifier: Apache-2.0
3 # FIXME: SHADOW_VARS: Remove this once we have enabled -Wshadow globally.
6 add_subdirectory(crc)
21 add_subdirectory_ifdef(CONFIG_OPENAMP open-amp)
/Zephyr-latest/soc/nuvoton/npcx/common/ecst/
Decst.py5 # SPDX-License-Identifier: Apache-2.0
10 # -i in_file.bin -o out_file.bin
11 # [-chip <name>] [-v|-vv]
12 # [-nohcrc] [-nofcrc] [-ph <offset>]
13 # [-flashsize <1|2|4|8|16>]
14 # [-spimaxclk <20|25|33|40|50>]
15 # [-spireadmode <normal|fast|dual|quad>]
112 INVALID_INPUT = -1
115 BYTES_TO_PAD = HDR_FW_HEADER_SIG_OFFSET - RESERVED_BYTES_OFFSET
166 :returns: output file path object, or -1 if fails
[all …]
/Zephyr-latest/doc/services/storage/nvs/
Dnvs.rst3 Non-Volatile Storage (NVS)
6 Elements, represented as id-data pairs, are stored in flash using a
7 FIFO-managed circular buffer. The flash area is divided into sectors. Elements
10 sector it is checked that identifier - data pairs exist in the sectors in use,
11 if not the id-data pair is copied.
13 The id is a 16-bit unsigned number. NVS ensures that for each used id there is
14 at least one id-data pair stored in flash at all time.
22 of: id, data offset in sector, data length, part (unused), and a CRC. This CRC is
25 CRC-32. Use the :kconfig:option:`CONFIG_NVS_DATA_CRC` configuration item to enable
26 the data part CRC.
[all …]
/Zephyr-latest/subsys/retention/
DKconfig2 # SPDX-License-Identifier: Apache-2.0
6 imply CRC
33 device access. This option should only be enabled when retention
51 e.g. button-less bootloader serial recovery mode entering from the
55 byte must be created and set as the "zephyr,boot-mode" chosen node
63 module-str = retention
/Zephyr-latest/subsys/mgmt/mcumgr/transport/
DKconfig.shell2 # Copyright Nordic Semiconductor ASA 2020-2022. All rights reserved.
3 # SPDX-License-Identifier: Apache-2.0
16 depends on CRC
40 If enabled, will time out a partial or erroneous MCUmgr command
/Zephyr-latest/dts/bindings/gpio/
Dadi,max14916-gpio.yaml3 # SPDX-License-Identifier: Apache-2.0
7 compatible: "adi,max14916-gpio"
10 "#gpio-cells":
17 drdy-gpios:
19 High-Side Open-Drain Output. READY is passive low when the internal
22 type: phandle-array
23 fault-gpios:
27 type: phandle-array
28 sync-gpios:
31 type: phandle-array
[all …]
Dadi,max14906-gpio.yaml3 # SPDX-License-Identifier: Apache-2.0
7 compatible: "adi,max14906-gpio"
10 "#gpio-cells":
17 drdy-gpios:
19 High-Side Open-Drain Output. READY is passive low when the internal
22 type: phandle-array
23 fault-gpios:
27 type: phandle-array
28 sync-gpios:
31 type: phandle-array
[all …]
/Zephyr-latest/dts/bindings/sensor/
Dti,tmag5273.yaml2 # SPDX-License-Identifier: Apache-2.0
5 Texas Instruments Low-Power Linear 3D Hall-Effect Sensor with an I2C interface.
17 #include <zephyr/dt-bindings/sensor/tmag5273.h>
27 include: [sensor-device.yaml, i2c-device.yaml]
30 operation-mode:
38 - 0 # TMAG5273_DT_OPER_MODE_CONTINUOUS (continuous)
39 - 1 # TMAG5273_DT_OPER_MODE_STANDBY (standby)
49 - 0 # TMAG5273_DT_AXIS_NONE
50 - 1 # TMAG5273_DT_AXIS_X
51 - 2 # TMAG5273_DT_AXIS_Y
[all …]
/Zephyr-latest/drivers/net/
Dppp.c4 * SPDX-License-Identifier: Apache-2.0
31 #include <zephyr/sys/crc.h>
142 switch (evt->type) { in uart_callback()
144 LOG_DBG("UART_TX_DONE: sent %zu bytes", evt->data.tx.len); in uart_callback()
161 / MSEC_PER_SEC > evt->data.tx.len * 2) { in uart_callback()
167 " (%d ms) or the UART baud rate (%u).", evt->data.tx.len, in uart_callback()
174 len = evt->data.rx.len; in uart_callback()
175 p = evt->data.rx.buf + evt->data.rx.offset; in uart_callback()
179 ret = ring_buf_put(&context->rx_ringbuf, p, len); in uart_callback()
180 if (ret < evt->data.rx.len) { in uart_callback()
[all …]
/Zephyr-latest/include/zephyr/bluetooth/
Ddirection.h4 * SPDX-License-Identifier: Apache-2.0
42 /** Received PDU had CRC OK */
44 /** Received PDU had incorrect CRC, but Radio peripheral
49 /** Received PDU had incorrect CRC, but Radio peripheral
118 /** The RSSI of the PDU with CTE (excluding CTE). Range: -1270 to +200. Units: 0.1 dBm. */
172 /** The RSSI of the PDU with CTE (excluding CTE). Range: -1270 to +200. Units: 0.1 dBm. */
240 * Transmission of Constant Tone Extension may be enabled only after setting periodic advertising
262 * Receive and sampling of Constant Tone Extension may be enabled only after periodic advertising
304 * The function is available if @kconfig{CONFIG_BT_DF_CONNECTION_CTE_TX} is enabled.
320 * The function is available if @kconfig{CONFIG_BT_DF_CONNECTION_CTE_REQ} is enabled.
[all …]
/Zephyr-latest/drivers/crypto/
Dcrypto_ataes132a_priv.h4 * SPDX-License-Identifier: Apache-2.0
27 /* Configuration Pre-Lock Writable Registers */
34 * ctrid valid entries are [0x0-0xF]
40 * keyid valid entries are [0x0-0xF]
46 * zoneid valid entries are [0x0-0xF]
52 * crtid valid entries are [0x0-0xF] characters
58 * Pre-Small Zone Lock Writable
64 * keynum valid entries are [0-F] characters
118 uint16_t crc; in ataes132a_atmel_crc() local
122 for (i = 0, crc = 0U; i < length; i++) { in ataes132a_atmel_crc()
[all …]
/Zephyr-latest/subsys/bluetooth/controller/
DKconfig.df4 # SPDX-License-Identifier: Apache-2.0
149 bool "Sampling of CTE for PDUs with bad CRC"
153 Enable support for sampling of CTE for PDUs that have bad CRC.
164 is able to store. For nRF5x-based controllers, the hardware imposes
176 If this feature is not enabled, the Radio initialization procedure will
202 int "Antenna switch offset relative to end of CRC"
204 range -2048 2047
207 Offset of start of antenna switching after end of the CRC. It is a signed value in number
214 range -2048 2047
225 range -2048 2047
[all …]
/Zephyr-latest/samples/bluetooth/direction_finding_central/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
76 return "CRC OK"; in packet_status2str()
78 return "CRC not OK, CTE Info OK"; in packet_status2str()
80 return "CRC not OK, Sampled other way"; in packet_status2str()
94 printk("[AD]: %u data_len %u\n", data->type, data->data_len); in eir_found()
96 switch (data->type) { in eir_found()
98 if (data->data_len > sizeof(u64)) { in eir_found()
102 (void)memcpy(&u64, data->data, data->data_len); in eir_found()
133 printk("[DEVICE]: %s, AD evt type %u, AD data len %u, RSSI %i\n", dev, type, ad->len, rssi); in device_found()
172 printk("success. CTE receive enabled.\n"); in enable_cte_reqest()
[all …]
/Zephyr-latest/include/zephyr/drivers/
Dw1.h5 * SPDX-License-Identifier: Apache-2.0
10 * @brief Public 1-Wire Driver APIs
19 #include <zephyr/sys/crc.h>
27 * @brief 1-Wire Interface
28 * @defgroup w1_interface 1-Wire Interface
46 (FOR_EACH(F1, (+), DT_SUPPORTS_DEP_ORDS(node_id)) - 1)
53 * @brief Defines the 1-Wire master settings types, which are runtime configurable.
56 /** Overdrive speed is enabled in case a value of 1 is passed and
74 /** Configuration common to all 1-Wire master implementations. */
80 /** Data common to all 1-Wire master implementations. */
[all …]
/Zephyr-latest/drivers/ethernet/
DKconfig.stm32_hal5 # SPDX-License-Identifier: Apache-2.0
17 imply CRC
20 all Ethernet enabled variants of the F2, F4, F7 and H7 series.
84 PHY's carrier status is re-evaluated.
162 Once enabled the ethernet MAC performs imperfect filtering
Deth_enc28j60_priv.h1 /* ENC28J60 Stand-alone Ethernet Controller with SPI
5 * SPDX-License-Identifier: Apache-2.0
27 * Nibble 1-0: Register address
174 /* Receive filters enabled:
175 * - Unicast
176 * - Multicast
177 * - Broadcast
178 * - CRC Check
180 * Used as default if hw-rx-filter property
186 * - Automatic Padding
[all …]
/Zephyr-latest/drivers/sensor/sensirion/shtcx/
Dshtcx.c4 * SPDX-License-Identifier: Apache-2.0
15 #include <zephyr/sys/crc.h>
37 * CRC algorithm parameters were taken from the
48 /* val = -45 + 175 * sample / (2^16) */
53 tmp = (int32_t)raw * 175U - (45 << 16); in shtcx_temperature_from_raw()
54 val->val1 = tmp / 0x10000; in shtcx_temperature_from_raw()
56 val->val2 = ((tmp % 0x10000) * 15625) / 1024; in shtcx_temperature_from_raw()
65 val->val1 = tmp / 0x10000; in shtcx_humidity_from_raw()
67 val->val2 = (tmp % 0x10000) * 15625U / 1024; in shtcx_humidity_from_raw()
72 const struct shtcx_config *cfg = dev->config; in shtcx_write_command()
[all …]
/Zephyr-latest/drivers/bluetooth/hci/
DKconfig4 # SPDX-License-Identifier: Apache-2.0
29 Bluetooth three-wire (H:5) UART driver. Implementation of HCI
30 Three-Wire UART Transport Layer.
77 bool "ACI message with BlueNRG-based devices"
82 Stack. Current driver supports: ST BLUENRG-MS.
238 Infineon's AIROC™ Wi-Fi & combos portfolio integrates
239 IEEE 802.11a/b/g/n/ac/ax Wi-Fi and Bluetooth® 5.2 in a single-chip
240 solution to enable small-form-factor IoT designs.
246 bool "Host auto-initiated Data Length Update quirk"
250 Enable the quirk wherein BT Host stack will auto-initiate Data Length
[all …]
/Zephyr-latest/drivers/sensor/ti/tmag5273/
Dtmag5273.c4 * SPDX-License-Identifier: Apache-2.0
15 #include <zephyr/dt-bindings/sensor/tmag5273.h>
25 #include <zephyr/sys/crc.h>
39 * Since the register counting is zero-based, one byte needs to be added to get the correct size.
40 * Also takes into account if CRC is enabled, which adds an additional byte for the CRC always
44 (TMAG5273_REG_RESULT_END - TMAG5273_REG_RESULT_BEGIN + 1 + TMAG5273_CRC_I2C_SIZE)
77 int16_t x_sample; /** measured B-field @x-axis */
78 int16_t y_sample; /** measured B-field @y-axis */
79 int16_t z_sample; /** measured B-field @z-axis */
82 uint16_t xyz_range; /** magnetic range for x/y/z-axis in mT */
[all …]

1234