/Zephyr-Core-3.5.0/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/radio/ |
D | radio_nrf5_fem_generic.h | 4 * SPDX-License-Identifier: Apache-2.0 10 * "generic-fem-two-ctrl-pins". 17 * --------- -------- 18 * PA pin ctx-gpios 19 * PA offset ctx-settle-time-us 20 * LNA pin crx-gpios 21 * LNA offset crx-settle-time-us 24 #define HAL_RADIO_GPIO_PA_PROP_NAME "ctx-gpios" 25 #define HAL_RADIO_GPIO_PA_OFFSET_PROP_NAME "ctx-settle-time-us" 26 #define HAL_RADIO_GPIO_LNA_PROP_NAME "crx-gpios" [all …]
|
/Zephyr-Core-3.5.0/dts/bindings/net/wireless/ |
D | generic-fem-two-ctrl-pins.yaml | 1 # Copyright (c) 2020-2021 Nordic Semiconductor ASA 2 # SPDX-License-Identifier: Apache-2.0 5 This is a representation of generic radio Front-End Module (FEM) 6 that has a two-pin control interface (CTX, CRX). 8 The CTX control pin is used to enable the Power Amplifier (PA) in 18 corresponding settle-time-us property.) 20 compatible: "generic-fem-two-ctrl-pins" 25 ctx-gpios: 26 type: phandle-array 28 SoC GPIO connected to the CTX input pin on the FEM device. [all …]
|
/Zephyr-Core-3.5.0/tests/bluetooth/init/ |
D | pa_lna.overlay | 3 compatible = "generic-fem-two-ctrl-pins"; 4 ctx-gpios = <&gpio0 26 0>; 5 ctx-settle-time-us = <5>; 6 crx-gpios = <&gpio0 27 0>; 7 crx-settle-time-us = <5>;
|
/Zephyr-Core-3.5.0/samples/boards/nrf/mesh/onoff-app/src/ |
D | main.c | 1 /* main.c - Application main entry point */ 6 * SPDX-License-Identifier: Apache-2.0 10 * This application is specific to the Nordic nRF52840-PDK board. 58 struct bt_mesh_msg_ctx *ctx, 62 struct bt_mesh_msg_ctx *ctx, 66 struct bt_mesh_msg_ctx *ctx, 70 struct bt_mesh_msg_ctx *ctx, 94 * it is re-transmitted several times. This occurs 157 { .led_device = GPIO_DT_SPEC_GET(DT_ALIAS(led0), gpios), }, 158 { .led_device = GPIO_DT_SPEC_GET(DT_ALIAS(led1), gpios), }, [all …]
|
/Zephyr-Core-3.5.0/drivers/spi/ |
D | spi_ifx_cat1.c | 5 * SPDX-License-Identifier: Apache-2.0 38 struct spi_context ctx; member 55 return -ENOMEM; in get_hw_block_num() 58 static uint8_t get_dfs_value(struct spi_context *ctx) in get_dfs_value() argument 60 switch (SPI_WORD_SIZE_GET(ctx->config->operation)) { in get_dfs_value() 74 struct ifx_cat1_spi_data *const data = dev->data; in transfer_chunk() 75 struct spi_context *ctx = &data->ctx; in transfer_chunk() local 77 size_t chunk_len = spi_context_max_continuous_chunk(ctx); in transfer_chunk() 83 data->chunk_len = chunk_len; in transfer_chunk() 86 &data->obj, ctx->tx_buf, spi_context_tx_buf_on(ctx) ? chunk_len : 0, ctx->rx_buf, in transfer_chunk() [all …]
|
/Zephyr-Core-3.5.0/drivers/sensor/hts221/ |
D | hts221.c | 4 * SPDX-License-Identifier: Apache-2.0 35 struct hts221_data *data = dev->data; in hts221_channel_get() 43 conv_val = (int32_t)(data->t1_degc_x8 - data->t0_degc_x8) * in hts221_channel_get() 44 (data->t_sample - data->t0_out) / in hts221_channel_get() 45 (data->t1_out - data->t0_out) + in hts221_channel_get() 46 data->t0_degc_x8; in hts221_channel_get() 49 val->val1 = conv_val / 8; in hts221_channel_get() 50 val->val2 = (conv_val % 8) * (1000000 / 8); in hts221_channel_get() 52 conv_val = (int32_t)(data->h1_rh_x2 - data->h0_rh_x2) * in hts221_channel_get() 53 (data->rh_sample - data->h0_t0_out) / in hts221_channel_get() [all …]
|
/Zephyr-Core-3.5.0/boards/arm/ubx_bmd345eval_nrf52840/ |
D | ubx_bmd345eval_nrf52840.dts | 2 * BMD-340-EVAL board configuration 3 * Copyright (c) 2021 u-blox AG 6 * SPDX-License-Identifier: Apache-2.0 9 /dts-v1/; 11 #include "ubx_bmd345eval_nrf52840-pinctrl.dtsi" 12 #include <zephyr/dt-bindings/input/input-event-codes.h> 15 model = "u-blox BMD-345-EVAL EVK nRF52840"; 16 compatible = "u-blox,ubx-bmd345eval-nrf52840"; 20 zephyr,shell-uart = &uart0; 21 zephyr,uart-mcumgr = &uart0; [all …]
|
/Zephyr-Core-3.5.0/drivers/ieee802154/ |
D | ieee802154_rf2xx.c | 1 /* ieee802154_rf2xx.c - ATMEL RF2XX IEEE 802.15.4 Driver */ 6 * Copyright (c) 2019-2020 Gerson Fernando Budke 8 * SPDX-License-Identifier: Apache-2.0 67 .rssi = -40, 77 struct rf2xx_context *ctx = CONTAINER_OF(cb, in trx_isr_handler() local 84 k_sem_give(&ctx->trx_isr_lock); in trx_isr_handler() 111 * Datasheet: Figure 7-13. Timing Example of an RX_AACK Transaction in rf2xx_trx_set_tx_state() 141 struct rf2xx_context *ctx = dev->data; in rf2xx_set_rssi_base() local 144 if (ctx->cc_page == IEEE802154_ATTR_PHY_CHANNEL_PAGE_ZERO_OQPSK_2450_BPSK_868_915) { in rf2xx_set_rssi_base() 148 } else if (ctx->cc_page == IEEE802154_ATTR_PHY_CHANNEL_PAGE_TWO_OQPSK_868_915) { in rf2xx_set_rssi_base() [all …]
|
D | ieee802154_cc2520.c | 1 /* ieee802154_cc2520.c - TI CC2520 driver */ 8 * SPDX-License-Identifier: Apache-2.0 47 * 1 - Debug related functions 48 * 2 - Generic helper functions (for any parts) 49 * 3 - GPIO related functions 50 * 4 - TX related helper functions 51 * 5 - RX related helper functions 52 * 6 - Radio device API functions 53 * 7 - Legacy radio device API functions 54 * 8 - Initialization [all …]
|
D | ieee802154_cc1200.c | 1 /* ieee802154_cc1200.c - TI CC1200 driver */ 8 * SPDX-License-Identifier: Apache-2.0 80 const struct cc1200_config *config = dev->config; in z_cc1200_access_reg() 118 return (spi_transceive_dt(&config->bus, &tx, &rx) == 0); in z_cc1200_access_reg() 124 return (spi_write_dt(&config->bus, &tx) == 0); in z_cc1200_access_reg() 129 struct cc1200_context *cc1200 = dev->data; in get_mac() 132 uint32_t *ptr = (uint32_t *)(cc1200->mac_addr + 4); in get_mac() 136 cc1200->mac_addr[7] = (cc1200->mac_addr[7] & ~0x01) | 0x02; in get_mac() 138 cc1200->mac_addr[4] = CONFIG_IEEE802154_CC1200_MAC4; in get_mac() 139 cc1200->mac_addr[5] = CONFIG_IEEE802154_CC1200_MAC5; in get_mac() [all …]
|
/Zephyr-Core-3.5.0/samples/drivers/can/babbling/src/ |
D | main.c | 2 * Copyright (c) 2021-2022 Henrik Brix Andersen <henrik@brixandersen.dk> 4 * SPDX-License-Identifier: Apache-2.0 27 struct button_callback_context *ctx = in button_callback() local 30 k_sem_give(&ctx->sem); in button_callback() 44 const struct gpio_dt_spec btn = GPIO_DT_SPEC_GET(BUTTON_NODE, gpios); in main() 63 printk("Error setting CAN-FD mode (err %d)", err); in main() 112 printk("babbling on %s with %s (%d-bit) CAN ID 0x%0*x, RTR %d, CAN-FD %d\n", in main() 113 dev->name, in main()
|
/Zephyr-Core-3.5.0/doc/services/smf/ |
D | index.rst | 27 struct smf_ctx ctx; 76 ``void smf_set_initial(smf_ctx *ctx, smf_state *state)`` 80 ``void smf_set_state(smf_ctx *ctx, smf_state *state)`` 91 smf_run_state if it returns a non-zero value. The function has the following 92 prototype: ``int32_t smf_run_state(smf_ctx *ctx)`` 99 takes a non-zero user defined value that's returned by the ``smf_run_state`` 101 ``void smf_terminate(smf_ctx *ctx, int32_t val)`` 119 init -> STATE_S0; 120 STATE_S0 -> STATE_S1; 121 STATE_S1 -> STATE_S2; [all …]
|
/Zephyr-Core-3.5.0/drivers/adc/ |
D | adc_ads114s0x.c | 4 * SPDX-License-Identifier: Apache-2.0 12 #include <zephyr/dt-bindings/adc/ads114s0x_adc.h> 83 FIELD_GET(GENMASK(pos + length - 1, pos), value) 85 target &= ~GENMASK(pos + length - 1, pos); \ 86 target |= FIELD_PREP(GENMASK(pos + length - 1, pos), value) 346 * - AIN0 as positive input 347 * - AIN1 as negative input 353 * - disable reference monitor 354 * - enable positive reference buffer 355 * - disable negative reference buffer [all …]
|