/Zephyr-latest/drivers/ieee802154/ |
D | ieee802154_rf2xx_iface.c | 1 /* 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 47 gpio_pin_set_dt(&conf->slptr_gpio, 1); in rf2xx_iface_phy_tx_start() [all …]
|
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, 84 k_sem_give(&ctx->trx_isr_lock); in trx_isr_handler() 109 * Ensures that RX automatically ACK will be sent when requested. in rf2xx_trx_set_tx_state() 111 * Datasheet: Figure 7-13. Timing Example of an RX_AACK Transaction in rf2xx_trx_set_tx_state() 133 * Set extended RX mode in rf2xx_trx_set_rx_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() [all …]
|
/Zephyr-latest/subsys/ipc/ipc_service/backends/ |
D | ipc_icbmsg.c | 4 * 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 …]
|
D | ipc_icmsg.c | 4 * 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 …]
|
D | ipc_icmsg_me_initiator.c | 4 * 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 …]
|
D | ipc_rpmsg_static_vrings.c | 4 * SPDX-License-Identifier: Apache-2.0 19 #include <zephyr/dt-bindings/ipc_service/static_vrings.h> 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 119 * - The endpoint with the name *name if it exists [all …]
|
D | ipc_icmsg_me_follower.c | 4 * 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/boards/digilent/zybo/ |
D | zybo-pinctrl.dtsi | 4 * 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/drivers/mbox/ |
D | mbox_nrfx_ipc.c | 4 * SPDX-License-Identifier: Apache-2.0 36 const struct mbox_nrf_conf *conf = dev->config; in is_rx_channel_valid() local 38 return ((ch < IPC_CONF_NUM) && (conf->rx_mask & BIT(ch))); in is_rx_channel_valid() 43 const struct mbox_nrf_conf *conf = dev->config; in is_tx_channel_valid() local 45 return ((ch < IPC_CONF_NUM) && (conf->tx_mask & BIT(ch))); in is_tx_channel_valid() 51 const struct device *dev = data->dev; in mbox_dispatcher() 56 LOG_WRN("RX event on illegal channel"); in mbox_dispatcher() 59 if (!(data->enabled_mask & BIT(channel))) { in mbox_dispatcher() 60 LOG_WRN("RX event on disabled channel"); in mbox_dispatcher() 63 if (data->cb[channel] != NULL) { in mbox_dispatcher() [all …]
|
/Zephyr-latest/samples/net/lwm2m_client/ |
D | README.rst | 1 .. zephyr:code-sample:: lwm2m-client 3 :relevant-api: lwm2m_api 20 …w.openmobilealliance.org/release/LightweightM2M/V1_0-20170208-A/OMA-TS-LightweightM2M-V1_0-2017020… 28 - :ref:`networking_with_eth_qemu`, :ref:`networking_with_qemu` or :ref:`networking_with_native_sim` 29 - Linux machine 30 - Leshan Demo Server (https://eclipse.org/leshan/) 38 .. list-table:: 40 * - :file:`prj.conf` 41 - This is the standard default config. 43 * - :file:`overlay-bootstrap.conf` [all …]
|
/Zephyr-latest/include/zephyr/ipc/ |
D | icmsg.h | 4 * 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/subsys/ipc/ipc_service/lib/ |
D | icmsg.c | 4 * 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/drivers/spi/ |
D | spi_shell.c | 4 * 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() 71 shell_print(ctx, "RX:"); in cmd_spi_transceive() [all …]
|
D | spi_grlib_spimctrl.c | 4 * SPDX-License-Identifier: Apache-2.0 18 uint32_t conf; member 21 uint32_t rx; 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/samples/net/capture/ |
D | README.rst | 1 .. 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/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/radio/ |
D | radio_df.c | 4 * 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. 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() 111 NRF_RADIO->SWITCHPATTERN = patterns[idx]; in radio_df_ant_switch_pattern_set() [all …]
|
/Zephyr-latest/doc/connectivity/networking/ |
D | eth_bridge_native_sim_setup.rst | 14 :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 39 RX packets 33 bytes 2408 (2.4 KB) 40 RX errors 0 dropped 0 overruns 0 frame 0 49 RX packets 21 bytes 1340 (1.3 KB) [all …]
|
/Zephyr-latest/drivers/serial/ |
D | uart_max32.c | 2 * 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/samples/net/gptp/ |
D | README.rst | 1 .. zephyr:code-sample:: gptp 3 :relevant-api: gptp ptp_time 5 Enable gPTP support and monitor functionality using net-shell. 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. 52 :zephyr_file:`samples/net/vlan/vlan-setup-linux.sh` provides a script that can be [all …]
|
/Zephyr-latest/drivers/wifi/esp32/src/ |
D | esp_wifi_drv.c | 4 * 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/dts/bindings/pinctrl/ |
D | xlnx,pinctrl-zynq.yaml | 2 # 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/ |
D | l2cap_br.c | 1 /* 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/ |
D | README.rst | 1 .. 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/dts/arm/nuvoton/npcx/ |
D | npcx9.dtsi | 4 * SPDX-License-Identifier: Apache-2.0 8 #include "npcx9/npcx9-alts-map.dtsi" 10 #include "npcx9/npcx9-miwus-wui-map.dtsi" 12 #include "npcx9/npcx9-miwus-int-map.dtsi" 14 #include "npcx9/npcx9-espi-vws-map.dtsi" 15 /* NPCX9 series low-voltage io controls mapping table */ 16 #include "npcx9/npcx9-lvol-ctrl-map.dtsi" 24 cpu-power-states = <&suspend_to_idle0 &suspend_to_idle1>; 27 power-states { 28 suspend_to_idle0: suspend-to-idle0 { [all …]
|
D | npcx7.dtsi | 4 * SPDX-License-Identifier: Apache-2.0 8 #include "npcx7/npcx7-alts-map.dtsi" 10 #include "npcx7/npcx7-miwus-wui-map.dtsi" 12 #include "npcx7/npcx7-miwus-int-map.dtsi" 14 #include "npcx7/npcx7-espi-vws-map.dtsi" 15 /* NPCX7 series low-voltage io controls mapping table */ 16 #include "npcx7/npcx7-lvol-ctrl-map.dtsi" 24 cpu-power-states = <&suspend_to_idle0 &suspend_to_idle1>; 27 power-states { 28 suspend_to_idle0: suspend-to-idle0 { [all …]
|