/Zephyr-Core-3.6.0/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-Core-3.6.0/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> 77 rpmsg_ept = &rpmsg_inst->endpoint[i]; in get_ept_slot_with_name() 79 if (strcmp(name, rpmsg_ept->name) == 0) { in get_ept_slot_with_name() 80 return &rpmsg_inst->endpoint[i]; in get_ept_slot_with_name() 97 rpmsg_ept = &rpmsg_inst->endpoint[i]; in check_endpoints_freed() 99 if (rpmsg_ept->bound == true) { in check_endpoints_freed() 109 * - true: when the endpoint was already cached / registered 110 * - false: when the endpoint was never registered before 113 * - 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-Core-3.6.0/boards/arm/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-Core-3.6.0/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-Core-3.6.0/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-Core-3.6.0/include/zephyr/ipc/ |
D | icmsg.h | 4 * SPDX-License-Identifier: Apache-2.0 41 /* Tx/Rx buffers. */ 69 * @param[in] conf Structure containing configuration parameters for the icmsg 71 * @param[inout] dev_data Structure containing run-time data used by the icmsg 80 * @retval -EALREADY when the instance is already opened. 83 int icmsg_open(const struct icmsg_config_t *conf, 92 * @param[in] conf Structure containing configuration parameters for the icmsg 95 * @param[inout] dev_data Structure containing run-time data used by the icmsg 101 int icmsg_close(const struct icmsg_config_t *conf, 106 * @param[in] conf Structure containing configuration parameters for the icmsg [all …]
|
/Zephyr-Core-3.6.0/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-Core-3.6.0/samples/bluetooth/ipsp/ |
D | README.rst | 1 .. _bluetooth-ipsp-sample: 19 .. zephyr-app-commands:: 20 :zephyr-app: samples/bluetooth/ipsp 26 :file:`prj_dbg.conf`: 28 .. zephyr-app-commands:: 29 :zephyr-app: samples/bluetooth/ipsp 31 :conf: prj_dbg.conf 44 .. zephyr-app-commands:: 45 :zephyr-app: samples/bluetooth/ipsp 47 :conf: "prj_zep1656.conf" [all …]
|
/Zephyr-Core-3.6.0/drivers/wifi/esp32/src/ |
D | esp_wifi_drv.c | 4 * SPDX-License-Identifier: Apache-2.0 74 const struct wifi_status *status = (const struct wifi_status *)cb->info; in wifi_event_handler() 99 return -EIO; in esp_event_send_internal() 109 struct esp32_wifi_runtime *data = dev->data; in esp32_wifi_send() 115 if (net_pkt_read(pkt, data->frame_buf, pkt_len) < 0) { in esp32_wifi_send() 120 if (esp_wifi_internal_tx(ifx, (void *)data->frame_buf, pkt_len) != ESP_OK) { in esp32_wifi_send() 125 data->stats.bytes.sent += pkt_len; in esp32_wifi_send() 126 data->stats.pkts.tx++; in esp32_wifi_send() 136 data->stats.errors.tx++; in esp32_wifi_send() 138 return -EIO; in esp32_wifi_send() [all …]
|
/Zephyr-Core-3.6.0/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-Core-3.6.0/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-Core-3.6.0/subsys/bluetooth/host/ |
D | l2cap_br.c | 1 /* l2cap_br.c - L2CAP BREDR oriented handling */ 6 * SPDX-License-Identifier: Apache-2.0 98 SYS_SLIST_FOR_EACH_CONTAINER(&conn->channels, chan, node) { in bt_l2cap_br_lookup_rx_cid() 99 if (BR_CHAN(chan)->rx.cid == cid) { in bt_l2cap_br_lookup_rx_cid() 112 SYS_SLIST_FOR_EACH_CONTAINER(&conn->channels, chan, node) { in bt_l2cap_br_lookup_tx_cid() 113 if (BR_CHAN(chan)->tx.cid == cid) { in bt_l2cap_br_lookup_tx_cid() 131 if (br_chan->rx.cid > 0) { in l2cap_br_chan_alloc_cid() 141 br_chan->rx.cid = cid; in l2cap_br_chan_alloc_cid() 151 bt_l2cap_chan_remove(chan->conn, chan); in l2cap_br_chan_cleanup() 159 LOG_DBG("chan %p cid 0x%04x", br_chan, br_chan->rx.cid); in l2cap_br_chan_destroy() [all …]
|
/Zephyr-Core-3.6.0/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-Core-3.6.0/samples/boards/96b_argonkey/sensors/ |
D | README.rst | 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/96b_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/96b_argonkey/sensors 50 :host-os: unix [all …]
|
/Zephyr-Core-3.6.0/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" 22 def-io-conf-list { 61 compatible = "nuvoton,npcx9", "nuvoton,npcx", "simple-bus"; 65 compatible = "nuvoton,npcx-itim-timer"; [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" 22 def-io-conf-list { 60 compatible = "nuvoton,npcx7", "nuvoton,npcx", "simple-bus"; 64 compatible = "nuvoton,npcx-itim-timer"; [all …]
|
D | npcx4.dtsi | 4 * SPDX-License-Identifier: Apache-2.0 8 #include "npcx4/npcx4-alts-map.dtsi" 10 #include "npcx4/npcx4-miwus-wui-map.dtsi" 12 #include "npcx4/npcx4-miwus-int-map.dtsi" 14 #include "npcx4/npcx4-espi-vws-map.dtsi" 15 /* npcx4 series low-voltage io controls mapping table */ 16 #include "npcx4/npcx4-lvol-ctrl-map.dtsi" 22 def-io-conf-list { 62 compatible = "nuvoton,npcx4", "nuvoton,npcx", "simple-bus"; 66 compatible = "nuvoton,npcx-itim-timer"; [all …]
|
/Zephyr-Core-3.6.0/drivers/spi/ |
D | spi_grlib_spimctrl.c | 4 * SPDX-License-Identifier: Apache-2.0 17 uint32_t conf; member 20 uint32_t rx; member 34 #define SPI_DATA(dev) ((struct data *) ((dev)->data)) 47 if (config->slave != 0) { in spi_config() 49 return -ENOTSUP; in spi_config() 52 if (SPI_WORD_SIZE_GET(config->operation) != 8) { in spi_config() 54 return -ENOTSUP; in spi_config() 57 if (config->operation & SPI_CS_ACTIVE_HIGH) { in spi_config() 59 return -ENOTSUP; in spi_config() [all …]
|
/Zephyr-Core-3.6.0/samples/subsys/modbus/rtu_server/ |
D | README.rst | 1 .. zephyr:code-sample:: modbus-rtu-server 3 :relevant-api: modbus 16 This sample has been tested with the nRF52840-DK and FRDM-K64F boards, 26 Using RS-485 transceiver 30 In addition to the evaluation board, an USB to RS-485 bus adapter and 31 a RS-485 shield are required. The shield converts UART TX, RX signals to RS-485. 32 An Arduino header compatible shield like `joy-it RS-485 shield for Arduino`_ 34 on the JOY-IT shield. For other shields, ``de-gpios`` property must be adapted 38 The USB to RS-485 adapter connects to the USB port of a computer. 39 The two A+, B- lines should be connected to the RS-485 shield. [all …]
|
/Zephyr-Core-3.6.0/samples/subsys/shell/fs/ |
D | README.rst | 1 .. zephyr:code-sample:: shell-fs 3 :relevant-api: file_system_api 25 .. zephyr-app-commands:: 26 :zephyr-app: samples/subsys/shell/fs 35 .. code-block:: console 37 zephyr/zephyr.exe -help 43 --------------------------------------- 49 search path and that a 32-bit version of libfuse is installed. For more 53 .. code-block:: console 55 export PKG_CONFIG_PATH=/usr/lib/i386-linux-gnu/pkgconfig [all …]
|