Home
last modified time | relevance | path

Searched +full:ctx +full:- +full:gpios (Results 1 – 15 of 15) sorted by relevance

/Zephyr-latest/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/radio/
Dradio_nrf5_fem_generic.h4 * 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-latest/dts/bindings/net/wireless/
Dgeneric-fem-two-ctrl-pins.yaml1 # 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-latest/tests/bluetooth/init/
Dpa_lna.overlay3 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-latest/boards/ezurio/bl654_dvk/
Dbl654_dvk_nrf52840_pa.dts5 * SPDX-License-Identifier: Apache-2.0
11 /* Information from Nordic SDK-Based Application Development and SKY66112 datasheet */
13 compatible = "generic-fem-two-ctrl-pins";
14 ctx-gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>;
15 crx-gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>;
16 ctx-settle-time-us = <23>;
17 crx-settle-time-us = <5>;
18 tx-gain-db = <22>;
19 rx-gain-db = <11>;
/Zephyr-latest/samples/boards/nordic/mesh/onoff-app/src/
Dmain.c1 /* 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-latest/boards/panasonic/pan1783/
Dpan1783a_pa_evb_nrf5340_cpunet.dts4 * SPDX-License-Identifier: Apache-2.0
7 /dts-v1/;
12 model = "Panasonic PAN1783A-PA EVB (NRF5340) Network";
13 compatible = "panasonic,pan1783a_pa-evb-cpunet";
18 zephyr,code-partition = &slot0_partition;
22 compatible = "skyworks,sky66407-11", "generic-fem-two-ctrl-pins";
23 ctx-gpios = <&gpio0 19 GPIO_ACTIVE_HIGH>;
24 crx-gpios = <&gpio0 21 GPIO_ACTIVE_HIGH>;
/Zephyr-latest/drivers/spi/
Dspi_ifx_cat1.c5 * SPDX-License-Identifier: Apache-2.0
39 struct spi_context ctx; member
56 return -ENOMEM; in get_hw_block_num()
59 static uint8_t get_dfs_value(struct spi_context *ctx) in get_dfs_value() argument
61 switch (SPI_WORD_SIZE_GET(ctx->config->operation)) { in get_dfs_value()
75 struct ifx_cat1_spi_data *const data = dev->data; in transfer_chunk()
76 struct spi_context *ctx = &data->ctx; in transfer_chunk() local
78 size_t chunk_len = spi_context_max_continuous_chunk(ctx); in transfer_chunk()
84 data->chunk_len = chunk_len; in transfer_chunk()
87 &data->obj, ctx->tx_buf, spi_context_tx_buf_on(ctx) ? chunk_len : 0, ctx->rx_buf, in transfer_chunk()
[all …]
/Zephyr-latest/boards/u-blox/ubx_bmd345eval/
Dubx_bmd345eval_nrf52840.dts2 * BMD-340-EVAL board configuration
3 * Copyright (c) 2021 u-blox AG
6 * SPDX-License-Identifier: Apache-2.0
9 /dts-v1/;
12 #include "ubx_bmd345eval_nrf52840-pinctrl.dtsi"
13 #include <zephyr/dt-bindings/input/input-event-codes.h>
16 model = "u-blox BMD-345-EVAL EVK nRF52840";
17 compatible = "u-blox,ubx-bmd345eval-nrf52840";
21 zephyr,shell-uart = &uart0;
22 zephyr,uart-mcumgr = &uart0;
[all …]
/Zephyr-latest/drivers/ethernet/
Deth_lan865x.c4 * SPDX-License-Identifier: Apache-2.0
26 struct lan865x_data *ctx = dev->data; in lan865x_mac_rxtx_control() local
33 return oa_tc6_reg_write(ctx->tc6, LAN865x_MAC_NCR, ctl); in lan865x_mac_rxtx_control()
39 struct lan865x_data *ctx = dev->data; in lan865x_iface_init() local
41 net_if_set_link_addr(iface, ctx->mac_address, sizeof(ctx->mac_address), in lan865x_iface_init()
44 if (ctx->iface == NULL) { in lan865x_iface_init()
45 ctx->iface = iface; in lan865x_iface_init()
51 ctx->iface_initialized = true; in lan865x_iface_init()
65 const struct lan865x_config *cfg = dev->config; in lan865x_set_config()
66 struct lan865x_data *ctx = dev->data; in lan865x_set_config() local
[all …]
/Zephyr-latest/drivers/ieee802154/
Dieee802154_rf2xx.c1 /* 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 …]
Dieee802154_cc2520.c1 /* 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 …]
Dieee802154_cc1200.c1 /* 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 sys_rand_get(&cc1200->mac_addr[4], 4U); in get_mac()
134 cc1200->mac_addr[7] = (cc1200->mac_addr[7] & ~0x01) | 0x02; in get_mac()
136 cc1200->mac_addr[4] = CONFIG_IEEE802154_CC1200_MAC4; in get_mac()
137 cc1200->mac_addr[5] = CONFIG_IEEE802154_CC1200_MAC5; in get_mac()
[all …]
/Zephyr-latest/samples/drivers/can/babbling/src/
Dmain.c2 * 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()
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-latest/drivers/adc/
Dadc_ads114s0x.c4 * SPDX-License-Identifier: Apache-2.0
12 #include <zephyr/dt-bindings/adc/ads114s0x_adc.h>
85 FIELD_GET(GENMASK(pos + length - 1, pos), value)
87 target &= ~GENMASK(pos + length - 1, pos); \
88 target |= FIELD_PREP(GENMASK(pos + length - 1, pos), value)
356 * - AIN0 as positive input
357 * - AIN1 as negative input
363 * - disable reference monitor
364 * - enable positive reference buffer
365 * - disable negative reference buffer
[all …]
/Zephyr-latest/doc/services/smf/
Dindex.rst27 struct smf_ctx ctx;
99 if an initial transition to a child state is defined. A well-formed
112 smf_run_state if it returns a non-zero value.
126 function takes a non-zero user defined value that will be returned by the
143 2. Only allowing external transitions to self, not to sub-states. A transition
171 init -> STATE_S0;
172 STATE_S0 -> STATE_S1;
173 STATE_S1 -> STATE_S2;
174 STATE_S2 -> STATE_S0;
190 struct smf_ctx ctx;
[all …]