Home
last modified time | relevance | path

Searched +full:conf +full:- +full:tx (Results 1 – 25 of 60) sorted by relevance

123

/Zephyr-latest/drivers/ieee802154/
Dieee802154_rf2xx_iface.c1 /* ieee802154_rf2xx_iface.c - ATMEL RF2XX IEEE 802.15.4 Interface */
4 * Copyright (c) 2019-2020 Gerson Fernando Budke
6 * SPDX-License-Identifier: Apache-2.0
29 const struct rf2xx_config *conf = dev->config; in rf2xx_iface_phy_rst() local
32 gpio_pin_set_dt(&conf->reset_gpio, 0); in rf2xx_iface_phy_rst()
33 gpio_pin_set_dt(&conf->slptr_gpio, 0); in rf2xx_iface_phy_rst()
38 gpio_pin_set_dt(&conf->reset_gpio, 1); in rf2xx_iface_phy_rst()
40 gpio_pin_set_dt(&conf->reset_gpio, 0); in rf2xx_iface_phy_rst()
44 const struct rf2xx_config *conf = dev->config; in rf2xx_iface_phy_tx_start() local
46 /* Start TX transmission at rise edge */ in rf2xx_iface_phy_tx_start()
[all …]
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,
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()
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()
156 ctx->trx_rssi_base = base; in rf2xx_set_rssi_base()
[all …]
/Zephyr-latest/subsys/ipc/ipc_service/backends/
Dipc_icbmsg.c4 * SPDX-License-Identifier: Apache-2.0
14 * --------------------------
16 * Single channel (RX or TX) of the shared memory is divided into two areas: ICMsg area
17 * followed by Blocks area. ICMsg is used to send and receive short 3-byte messages.
22 * +------------+-------------+
24 * +------------+-------------+
27 * +-----------+-----------+-----------+-----------+- -+-----------+
28 * | Block 0 | Block 1 | Block 2 | Block 3 | ... | Block N-1 |
29 * +-----------+-----------+-----------+-----------+- -+-----------+
32 * +------+--------------------------------+---------+
[all …]
Dipc_icmsg.c4 * SPDX-License-Identifier: Apache-2.0
20 const struct icmsg_config_t *conf = instance->config; in register_ept() local
21 struct icmsg_data_t *dev_data = instance->data; in register_ept()
26 return icmsg_open(conf, dev_data, &cfg->cb, cfg->priv); in register_ept()
31 const struct icmsg_config_t *conf = instance->config; in deregister_ept() local
32 struct icmsg_data_t *dev_data = instance->data; in deregister_ept()
34 return icmsg_close(conf, dev_data); in deregister_ept()
40 const struct icmsg_config_t *conf = instance->config; in send() local
41 struct icmsg_data_t *dev_data = instance->data; in send()
43 return icmsg_send(conf, dev_data, msg, len); in send()
[all …]
Dipc_rpmsg_static_vrings.c4 * SPDX-License-Identifier: Apache-2.0
19 #include <zephyr/dt-bindings/ipc_service/static_vrings.h>
56 /* TX buffer size */
83 rpmsg_ept = &rpmsg_inst->endpoint[i]; in get_ept_slot_with_name()
85 if (strcmp(name, rpmsg_ept->name) == 0) { in get_ept_slot_with_name()
86 return &rpmsg_inst->endpoint[i]; in get_ept_slot_with_name()
103 rpmsg_ept = &rpmsg_inst->endpoint[i]; in check_endpoints_freed()
105 if (rpmsg_ept->bound == true) { in check_endpoints_freed()
115 * - true: when the endpoint was already cached / registered
116 * - false: when the endpoint was never registered before
[all …]
Dipc_icmsg_me_initiator.c4 * SPDX-License-Identifier: Apache-2.0
29 struct backend_data_t *dev_data = instance->data; in bound()
31 icmsg_me_icmsg_bound(&dev_data->icmsg_me_data); in bound()
37 struct backend_data_t *dev_data = instance->data; in received()
52 r = icmsg_me_get_ept_cfg(&dev_data->icmsg_me_data, ept_id, in received()
58 if (ept && ept->cb.bound) { in received()
59 ept->cb.bound(ept->priv); in received()
62 icmsg_me_received_data(&dev_data->icmsg_me_data, *id, in received()
75 const struct icmsg_config_t *conf = instance->config; in open() local
76 struct backend_data_t *dev_data = instance->data; in open()
[all …]
Dipc_icmsg_me_follower.c4 * SPDX-License-Identifier: Apache-2.0
40 if (data->ept_disc_loc_cache[i] == NULL) { in get_ept_cached_loc()
43 if (strncmp(data->ept_disc_loc_cache[i]->name, name, in get_ept_cached_loc()
45 return data->ept_disc_loc_cache[i]; in get_ept_cached_loc()
58 if (strncmp(data->ept_disc_rmt_cache[i].name, name, in get_ept_cached_rmt()
60 strlen(data->ept_disc_rmt_cache[i].name) == len) { in get_ept_cached_rmt()
61 return &data->ept_disc_rmt_cache[i]; in get_ept_cached_rmt()
71 if (data->ept_disc_loc_cache[i] == NULL) { in cache_ept_loc()
72 data->ept_disc_loc_cache[i] = ept; in cache_ept_loc()
77 return -ENOMEM; in cache_ept_loc()
[all …]
/Zephyr-latest/drivers/wifi/nrf_wifi/off_raw_tx/src/
Doff_raw_tx_api.c4 * SPDX-License-Identifier: Apache-2.0
8 * @brief File containing API definitions for the Offloaded raw TX feature.
26 0, 1, 2, 3, 4, 5, 6, 7, -1 };
28 /* DTS uses 1dBm as the unit for TX power, while the RPU uses 0.25dBm */
33 ctrl_params->ant_gain_2g = CONFIG_NRF70_ANT_GAIN_2G; in configure_tx_pwr_settings()
34 ctrl_params->ant_gain_5g_band1 = CONFIG_NRF70_ANT_GAIN_5G_BAND1; in configure_tx_pwr_settings()
35 ctrl_params->ant_gain_5g_band2 = CONFIG_NRF70_ANT_GAIN_5G_BAND2; in configure_tx_pwr_settings()
36 ctrl_params->ant_gain_5g_band3 = CONFIG_NRF70_ANT_GAIN_5G_BAND3; in configure_tx_pwr_settings()
37 ctrl_params->band_edge_2g_lo_dss = CONFIG_NRF70_BAND_2G_LOWER_EDGE_BACKOFF_DSSS; in configure_tx_pwr_settings()
38 ctrl_params->band_edge_2g_lo_ht = CONFIG_NRF70_BAND_2G_LOWER_EDGE_BACKOFF_HT; in configure_tx_pwr_settings()
[all …]
/Zephyr-latest/boards/digilent/zybo/
Dzybo-pinctrl.dtsi4 * SPDX-License-Identifier: Apache-2.0
7 #include <zephyr/dt-bindings/pinctrl/pinctrl-zynq.h>
10 pinctrl_uart1_default: uart1-default {
16 conf {
18 slew-rate = <IO_SPEED_SLOW>;
19 power-source = <IO_STANDARD_LVCMOS18>;
22 conf-rx {
24 bias-high-impedance;
27 conf-tx {
29 bias-disable;
/Zephyr-latest/include/zephyr/drivers/wifi/nrf_wifi/off_raw_tx/
Doff_raw_tx_api.h4 * SPDX-License-Identifier: Apache-2.0
8 * @addtogroup nrf70_off_raw_tx_api nRF70 Offloaded raw TX API
11 * @brief File containing API's for the Offloaded raw TX feature.
28 * @brief- Transmission rates
78 * @brief- HE guard interval value
94 * @brief- HE long training field duration
109 * @brief- Throughput mode
130 * @brief This structure defines the Offloaded raw tx debug statistics.
139 * @brief- Configuration parameters for offloaded raw TX
140 * Parameters which can be used to configure the offloaded raw TX operation.
[all …]
/Zephyr-latest/include/zephyr/ipc/
Dicmsg.h4 * SPDX-License-Identifier: Apache-2.0
41 /* Tx/Rx buffers. */
71 * @param[in] conf Structure containing configuration parameters for the icmsg
73 * @param[inout] dev_data Structure containing run-time data used by the icmsg
82 * @retval -EALREADY when the instance is already opened.
85 int icmsg_open(const struct icmsg_config_t *conf,
94 * @param[in] conf Structure containing configuration parameters for the icmsg
97 * @param[inout] dev_data Structure containing run-time data used by the icmsg
103 int icmsg_close(const struct icmsg_config_t *conf,
108 * @param[in] conf Structure containing configuration parameters for the icmsg
[all …]
/Zephyr-latest/drivers/spi/
Dspi_shell.c4 * SPDX-License-Identifier: Apache-2.0
21 #define MAX_SPI_BYTES MIN((CONFIG_SHELL_ARGC_MAX - TXRX_ARGV_BYTES), 32)
31 entry->syntax = (dev != NULL) ? dev->name : NULL; in device_name_get()
32 entry->handler = NULL; in device_name_get()
33 entry->help = NULL; in device_name_get()
34 entry->subcmd = NULL; in device_name_get()
45 shell_error(ctx, "SPI device isn't configured. Use `spi conf`"); in cmd_spi_transceive()
46 return -ENODEV; in cmd_spi_transceive()
49 int bytes_to_send = argc - TXRX_ARGV_BYTES; in cmd_spi_transceive()
68 shell_print(ctx, "TX:"); in cmd_spi_transceive()
[all …]
Dspi_grlib_spimctrl.c4 * SPDX-License-Identifier: Apache-2.0
18 uint32_t conf; member
22 uint32_t tx; member
35 #define SPI_DATA(dev) ((struct data *) ((dev)->data))
48 if (config->slave != 0) { in spi_config()
50 return -ENOTSUP; in spi_config()
53 if (SPI_WORD_SIZE_GET(config->operation) != 8) { in spi_config()
55 return -ENOTSUP; in spi_config()
58 if (config->operation & SPI_CS_ACTIVE_HIGH) { in spi_config()
60 return -ENOTSUP; in spi_config()
[all …]
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/radio/
Dradio_df.c4 * SPDX-License-Identifier: Apache-2.0
33 * MAX_DFE_GPIO-1, with the given parenthesized separator.
57 /* The number of dfegpio[n]-gpios properties which are set. */
64 * dfegpio[n]-gpios properties which are set.
89 "Missing antenna pattern used to select antenna for PDU Tx "
91 "Set the dfe-pdu-antenna devicetree property.");
102 * - SWITCHPATTERN[0] for idle period (PDU Tx/Rx), in radio_df_ant_switch_pattern_set()
103 * - SWITCHPATTERN[1] for guard and reference period, in radio_df_ant_switch_pattern_set()
104 * - SWITCHPATTERN[2] and following for switch-sampling slots. in radio_df_ant_switch_pattern_set()
109 NRF_RADIO->SWITCHPATTERN = PDU_ANTENNA; in radio_df_ant_switch_pattern_set()
[all …]
/Zephyr-latest/subsys/ipc/ipc_service/lib/
Dicmsg.c4 * SPDX-License-Identifier: Apache-2.0
34 static int mbox_deinit(const struct icmsg_config_t *conf, in mbox_deinit() argument
39 err = mbox_set_enabled_dt(&conf->mbox_rx, 0); in mbox_deinit()
44 err = mbox_register_callback_dt(&conf->mbox_rx, NULL, NULL); in mbox_deinit()
50 (void)k_work_cancel(&dev_data->mbox_work); in mbox_deinit()
51 (void)k_work_cancel_delayable(&dev_data->notify_work); in mbox_deinit()
59 return atomic_get(&dev_data->state) == ICMSG_STATE_READY; in is_endpoint_ready()
69 (void)mbox_send_dt(&dev_data->cfg->mbox_tx, NULL); in notify_process()
71 atomic_t state = atomic_get(&dev_data->state); in notify_process()
84 (void)mbox_send_dt(&dev_data->cfg->mbox_tx, NULL); in notify_process()
[all …]
/Zephyr-latest/samples/net/gptp/
DREADME.rst1 .. zephyr:code-sample:: gptp
3 :relevant-api: gptp ptp_time
5 Enable gPTP support and monitor functionality using net-shell.
11 gPTP phase discontinuity callback, enable traffic class support (TX multi
12 queues) and setup VLANs (if enabled). The net-shell is also enabled so that
29 embedded device like NXP FRDM-K64F, Nucleo-H743-ZI, Nucleo-H745ZI-Q,
30 Nucleo-F767ZI or Atmel SAM-E70 Xplained. Note that gPTP is only supported for
36 .. zephyr-app-commands::
37 :zephyr-app: samples/net/gptp
42 The net-shell command "**net gptp**" will print out general gPTP information.
[all …]
/Zephyr-latest/samples/net/capture/
DREADME.rst1 .. zephyr:code-sample:: net-capture
3 :relevant-api: net_capture
10 This application will setup the device so that net-shell can be used
24 - :ref:`networking_with_host`
31 .. zephyr-app-commands::
32 :zephyr-app: samples/net/capture
34 :conf: <config file to use>
42 The ``net-tools`` project contains ``net-setup.sh`` script that can be used to setup
47 .. code-block:: console
49 ./net-setup.sh -c zeth-tunnel.conf
[all …]
/Zephyr-latest/doc/connectivity/networking/
Deth_bridge_native_sim_setup.rst14 :kconfig:option:`CONFIG_NET_ETHERNET_BRIDGE` Kconfig option. In this setup, the net-tools
20 .. code-block:: console
22 cd $ZEPHYR_BASE/../tools/net-tools
23 ./net-setup.sh -c zeth-multiface.conf -i zeth0 -t 2
25 The ``-c`` tells which configuration file to use, where ``zeth-multiface.conf`` is tailored
27 The ``-i`` option tells what is the first host interface name. The ``-t`` tells how
32 .. code-block:: console
41 TX packets 49 bytes 4092 (4.0 KB)
42 TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
51 TX packets 45 bytes 3916 (3.9 KB)
[all …]
/Zephyr-latest/drivers/serial/
Duart_max32.c2 * Copyright (c) 2023-2024 Analog Devices, Inc.
4 * SPDX-License-Identifier: Apache-2.0
37 struct uart_config conf; /* baudrate, stopbits, ... */ member
46 const struct max32_uart_config *cfg = dev->config; in api_poll_out()
48 MXC_UART_WriteCharacter(cfg->regs, c); in api_poll_out()
54 const struct max32_uart_config *cfg = dev->config; in api_poll_in()
56 val = MXC_UART_ReadCharacterRaw(cfg->regs); in api_poll_in()
60 return -1; in api_poll_in()
70 const struct max32_uart_config *cfg = dev->config; in api_err_check()
72 flags = MXC_UART_GetFlags(cfg->regs); in api_err_check()
[all …]
/Zephyr-latest/drivers/wifi/esp32/src/
Desp_wifi_drv.c4 * SPDX-License-Identifier: Apache-2.0
94 struct esp32_wifi_runtime *data = dev->data; in esp32_wifi_send()
96 esp_interface_t ifx = data->state == ESP32_AP_CONNECTED ? ESP_IF_WIFI_AP : ESP_IF_WIFI_STA; in esp32_wifi_send()
99 if (net_pkt_read(pkt, data->frame_buf, pkt_len) < 0) { in esp32_wifi_send()
104 if (esp_wifi_internal_tx(ifx, (void *)data->frame_buf, pkt_len) != ESP_OK) { in esp32_wifi_send()
109 data->stats.bytes.sent += pkt_len; in esp32_wifi_send()
110 data->stats.pkts.tx++; in esp32_wifi_send()
120 data->stats.errors.tx++; in esp32_wifi_send()
122 return -EIO; in esp32_wifi_send()
132 return -EIO; in eth_esp32_rx()
[all …]
/Zephyr-latest/drivers/sensor/bosch/bmi160/
Demul_bmi160.c4 * SPDX-License-Identifier: Apache-2.0
27 /** Run-time data used by the emulator */
51 const struct bmi160_emul_cfg *cfg = target->cfg; in emul_bmi160_get_reg_value()
54 return -EINVAL; in emul_bmi160_get_reg_value()
57 memcpy(out, cfg->reg + reg_number, count); in emul_bmi160_get_reg_value()
63 struct bmi160_emul_data *data = target->data; in reg_write()
64 const struct bmi160_emul_cfg *cfg = target->cfg; in reg_write()
67 cfg->reg[regn] = val; in reg_write()
70 LOG_DBG(" * acc conf"); in reg_write()
76 LOG_DBG(" * gyr conf"); in reg_write()
[all …]
/Zephyr-latest/dts/bindings/pinctrl/
Dxlnx,pinctrl-zynq.yaml2 # SPDX-License-Identifier: Apache-2.0
5 # https://www.kernel.org/doc/Documentation/devicetree/bindings/pinctrl/xlnx,zynq-pinctrl.txt
6 # https://www.kernel.org/doc/Documentation/devicetree/bindings/pinctrl/xlnx,zynq-pinctrl.yaml
9 Xilinx Zynq-7000 SoC series pinctrl node. This node will define pin multiplexing and
18 #include <zephyr/dt-bindings/pinctrl/pinctrl-zynq.h>
21 pinctrl_uart1_default: uart1-default {
27 conf {
29 slew-rate = <IO_SPEED_SLOW>;
30 power-source = <IO_STANDARD_LVCMOS18>;
33 conf-rx {
[all …]
/Zephyr-latest/subsys/bluetooth/host/classic/
Dl2cap_br.c1 /* l2cap_br.c - L2CAP BREDR oriented handling */
6 * SPDX-License-Identifier: Apache-2.0
107 SYS_SLIST_FOR_EACH_CONTAINER(&conn->channels, chan, node) { in bt_l2cap_br_lookup_rx_cid()
108 if (BR_CHAN(chan)->rx.cid == cid) { in bt_l2cap_br_lookup_rx_cid()
121 SYS_SLIST_FOR_EACH_CONTAINER(&conn->channels, chan, node) { in bt_l2cap_br_lookup_tx_cid()
122 if (BR_CHAN(chan)->tx.cid == cid) { in bt_l2cap_br_lookup_tx_cid()
142 return br_chan_sig->info_fixed_chan; in bt_l2cap_br_get_remote_fixed_chan()
155 if (br_chan->rx.cid > 0) { in l2cap_br_chan_alloc_cid()
165 br_chan->rx.cid = cid; in l2cap_br_chan_alloc_cid()
175 bt_l2cap_chan_remove(chan->conn, chan); in l2cap_br_chan_cleanup()
[all …]
/Zephyr-latest/samples/boards/96boards/argonkey/sensors/
DREADME.rst1 .. zephyr:code-sample:: argonkey_sensors
18 - mezzanine mode, plugging the ArgonKey to HiKey board through its 96Board
19 low-speed connector
20 - standalone mode, supplying 5V directly on P1 connector
23 :zephyr_file:`samples/boards/96boards/argonkey/sensors/prj.conf`.
29 .. code-block:: c
35 printk("%s: device not ready.\n", hum_dev->name);
43 - :ref:`96b_argonkey`
48 .. zephyr-app-commands::
49 :zephyr-app: samples/boards/96boards/argonkey/sensors
[all …]
/Zephyr-latest/doc/connectivity/usb/device_next/
Dusb_device.rst18 high-speed device controllers are supported. It also provides support for
20 or changing the configuration later. It has built-in support for several USB
29 * :zephyr:code-sample:`usb-hid-keyboard`
31 * :zephyr:code-sample:`uac2-explicit-feedback`
33 * :zephyr:code-sample:`uac2-implicit-feedback`
36 ----------------------------------------
39 configuration ``-DCONF_FILE=usbd_next_prj.conf`` either directly or via
42 * :zephyr:code-sample:`bluetooth_hci_usb`
44 * :zephyr:code-sample:`usb-cdc-acm`
46 * :zephyr:code-sample:`usb-cdc-acm-console`
[all …]

123