/Zephyr-latest/drivers/can/ |
D | can_stm32_bxcan.c | 5 * SPDX-License-Identifier: Apache-2.0 8 /* Include soc.h prior to Zephyr CAN headers to pull in HAL fixups */ 10 #include <zephyr/drivers/can.h> 11 #include <zephyr/drivers/can/transceiver.h> 40 #if (CONFIG_CAN_MAX_STD_ID_FILTER + CONFIG_CAN_MAX_EXT_ID_FILTER * 2) > \ 66 CAN_TypeDef *can; /*!< CAN Registers*/ member 67 CAN_TypeDef *master_can; /*!< CAN Registers for shared filter */ 69 void (*config_irq)(CAN_TypeDef *can); 82 can_tx_callback_t callback = mb->tx_callback; in can_stm32_signal_tx_complete() 84 if (callback != NULL) { in can_stm32_signal_tx_complete() [all …]
|
D | Kconfig | 1 # CAN configuration options 4 # SPDX-License-Identifier: Apache-2.0 7 # CAN options 9 menuconfig CAN config 10 bool "Controller Area Network (CAN) drivers" 12 Enable CAN Driver Configuration 14 if CAN 16 module = CAN 17 module-str = CAN 21 int "CAN driver init priority" [all …]
|
D | can_shell.c | 5 * SPDX-License-Identifier: Apache-2.0 12 #include <zephyr/drivers/can.h> 36 /* zephyr-keep-sorted-start */ 38 CAN_SHELL_MODE_MAPPING("listen-only", CAN_MODE_LISTENONLY), 40 CAN_SHELL_MODE_MAPPING("manual-recovery", CAN_MODE_MANUAL_RECOVERY), 42 CAN_SHELL_MODE_MAPPING("one-shot", CAN_MODE_ONE_SHOT), 43 CAN_SHELL_MODE_MAPPING("triple-sampling", CAN_MODE_3_SAMPLES), 44 /* zephyr-keep-sorted-stop */ 73 return DEVICE_API_IS(can, dev) && device_is_ready(dev); in can_device_check() 88 uint8_t nbytes = can_dlc_to_bytes(frame->dlc); in can_shell_print_frame() [all …]
|
D | Kconfig.loopback | 1 # CAN loopback device configuration options 4 # SPDX-License-Identifier: Apache-2.0 7 bool "Emulated CAN loopback driver" 11 This is an emulated driver that can only loopback messages. 13 if CAN_LOOPBACK 29 if the filter matches. 37 if the filter matches. 43 Number of TX frames that can be buffered. 45 messages from this msgq and calls the respective receiver if the
|
D | can_xmc4xxx.c | 4 * SPDX-License-Identifier: Apache-2.0 10 #include <zephyr/drivers/can.h> 11 #include <zephyr/drivers/can/transceiver.h> 39 #define CAN_XMC4XXX_REG_TO_NODE_IND(reg) (((uint32_t)(reg) - (uint32_t)CAN_NODE0_BASE) / 0x100) 70 #if defined(CONFIG_CAN_ACCEPT_RTR) 80 CAN_NODE_TypeDef *can; member 92 struct can_xmc4xxx_data *dev_data = dev->data; in can_xmc4xxx_set_mode() 93 const struct can_xmc4xxx_config *dev_cfg = dev->config; in can_xmc4xxx_set_mode() 95 if (dev_data->common.started) { in can_xmc4xxx_set_mode() 96 return -EBUSY; in can_xmc4xxx_set_mode() [all …]
|
/Zephyr-latest/include/zephyr/drivers/ |
D | can.h | 6 * SPDX-License-Identifier: Apache-2.0 11 * @brief Controller Area Network (CAN) driver API. 31 * @brief CAN Interface 32 * @defgroup can_interface CAN Interface 40 * @name CAN frame definitions 45 * @brief Bit mask for a standard (11-bit) CAN identifier. 50 * @brief Bit mask for an extended (29-bit) CAN identifier. 55 * @brief Maximum data length code for CAN 2.0A/2.0B. 60 * @brief Maximum data length code for CAN FD. 79 * @name CAN controller mode flags [all …]
|
/Zephyr-latest/tests/drivers/can/host/pytest/ |
D | test_can.py | 3 # SPDX-License-Identifier: Apache-2.0 6 Test suites for testing Zephyr CAN <=> host CAN. 12 import can 13 from can import BusABC, CanProtocol 22 can.Message(arbitration_id=0x10, 27 can.Message(arbitration_id=0x20, 33 can.Message(arbitration_id=0x30, 39 can.Message(arbitration_id=0x40, 46 can.Message(arbitration_id=0x50, 55 Class for testing CAN RX/TX between Zephyr DUT and host. [all …]
|
D | can_shell.py | 3 # SPDX-License-Identifier: Apache-2.0 6 Zephyr CAN shell module support for providing a python-can bus interface for testing. 13 from can import BusABC, CanProtocol, Message 14 from can.exceptions import CanInitializationError, CanOperationError 15 from can.typechecking import CanFilters 21 class CanShellBus(BusABC): # pylint: disable=abstract-method 23 A CAN interface using the Zephyr CAN shell module. 27 can_filters: Optional[CanFilters] = None, **kwargs) -> None: 34 self.channel_info = f'Zephyr CAN shell, device "{self._device}"' 37 if 'fd' in self._get_capabilities(): [all …]
|
D | conftest.py | 3 # SPDX-License-Identifier: Apache-2.0 6 Configuration of Zephyr CAN <=> host CAN test suite. 13 from can import Bus, BusABC 19 def pytest_addoption(parser) -> None: 21 parser.addoption('--can-context', default=None, 22 help='Configuration context to use for python-can (default: None)') 25 def fixture_context(request, dut: DeviceAdapter) -> str: 26 """Return the name of the python-can configuration context to use.""" 27 ctx = request.config.getoption('--can-context') 29 if ctx is None: [all …]
|
/Zephyr-latest/soc/espressif/common/ |
D | Kconfig.spiram | 2 # SPDX-License-Identifier: Apache-2.0 4 if SOC_SERIES_ESP32 || SOC_SERIES_ESP32S2 || SOC_SERIES_ESP32S3 7 bool "Support for external, SPI-connected RAM" 8 default n if MCUBOOT 9 default n if ESP32_USE_UNSUPPORTED_REVISION && SOC_SERIES_ESP32 23 regions. If the region of desired capability is exhausted, 28 default 262134 if SYS_HEAP_SMALL_ONLY 29 default 1048576 if !SYS_HEAP_SMALL_ONLY 54 default SPIRAM_TYPE_ESPPSRAM16 if SPIRAM_MODE_QUAD 58 bool "ESP-PSRAM16 or APS1604" [all …]
|
/Zephyr-latest/dts/bindings/can/ |
D | can-controller.yaml | 1 # Common fields for CAN controllers 6 bus-speed: 12 Initial bitrate in bit/s. If this is unset, the initial bitrate is set to 17 Initial bitrate in bit/s. If this is unset, the initial bitrate is set to 19 sample-point: 24 If this is unset (or if it is set to 0), the initial sample point will default to 75.0% for 30 Actively controlled CAN transceiver. 33 transceiver0: can-phy0 { 34 compatible = "nxp,tja1040", "can-transceiver-gpio"; 35 standby-gpios = <gpioa 0 GPIO_ACTIVE_HIGH>; [all …]
|
/Zephyr-latest/tests/subsys/debug/coredump_backends/src/ |
D | main.c | 2 * Copyright (c) 2012-2014 Wind River Systems, Inc. 3 * Copyright (c) 2020-2023, Intel Corporation. 5 * SPDX-License-Identifier: Apache-2.0 42 /* Check backend error if backend supports this query */ in check_error() 44 if (ret != -ENOTSUP) { in check_error() 53 /* Clear backend error if backend supports this query */ in clear_error() 55 if (ret != -ENOTSUP) { in clear_error() 84 /* There should be a stored coredump now if backend has storage */ in test_has_stored_dump() 86 if (ret == -ENOTSUP) { in test_has_stored_dump() 88 TC_ERROR("Can't query stored dump: unexpectedly not supported.\n"); in test_has_stored_dump() [all …]
|
/Zephyr-latest/boards/nxp/imx93_evk/ |
D | Kconfig.defconfig | 2 # SPDX-License-Identifier: Apache-2.0 4 if BOARD_IMX93_EVK 6 if BOARD_IMX93_EVK_MIMX9352_A55 8 if CAN 14 # CAN Phy must be initialized after board mux 18 endif # CAN 20 if BOARD_MIMX93_EVK_EXP_SEL_INIT 34 if NETWORKING 45 if NET_TCP 52 if NET_MGMT_EVENT [all …]
|
/Zephyr-latest/subsys/canbus/isotp/ |
D | Kconfig | 1 # ISO-TP configuration options 4 # SPDX-License-Identifier: Apache-2.0 7 bool "ISO-TP Transport [EXPERIMENTAL]" 8 depends on CAN 13 Enable ISO TP support for CAN 15 if ISOTP 18 module-str = ISOTP 34 Timeout for the reception of the next FC frame. ISO 15765-2: 1000ms 42 ISO 15765-2: 1000ms 50 ISO 15765-2: 1000ms [all …]
|
/Zephyr-latest/samples/drivers/can/babbling/ |
D | Kconfig | 2 # SPDX-License-Identifier: Apache-2.0 7 hex "CAN ID" 9 range 0x000 0x7ff if !SAMPLE_CAN_BABBLING_EXT_ID 10 range 0x00000000 0x1fffffff if SAMPLE_CAN_BABBLING_EXT_ID 12 Babbling node CAN ID. 15 bool "Use Extended (29-bit) CAN ID" 17 Babling node sends extended (29-bit) CAN ID frames. 25 bool "Send CAN FD format frames" 28 Babbling node sends CAN FD format frames. 31 int "Maximum number of CAN frames to enqueue" [all …]
|
/Zephyr-latest/samples/net/sockets/can/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 12 #include <zephyr/drivers/can.h> 25 /* For testing purposes, we create another RX receiver if configured so */ 26 #if CONFIG_NET_SOCKETS_CAN_RECEIVERS == 2 62 LOG_DBG("Sending CAN data..."); in tx() 66 if (ret < 0) { in tx() 67 LOG_ERR("Cannot send CAN frame (%d)", -errno); in tx() 80 if (fd < 0) { in create_socket() 81 LOG_ERR("Cannot create %s CAN socket (%d)", "2nd", fd); in create_socket() 90 if (ret < 0) { in create_socket() [all …]
|
/Zephyr-latest/subsys/net/lib/dhcpv4/ |
D | Kconfig | 6 # SPDX-License-Identifier: Apache-2.0 12 select NET_MGMT_EVENT_INFO if NET_IPV4_ACD 15 if NET_DHCPV4 18 module-dep = NET_LOG 19 module-str = Log level for DHCPv4 client 20 module-help = Enable debug diagnostic from DHCPV4 client. 36 If set, custom callbacks for arbitrary DHCP options 37 can be added. These can be used to support otherwise 46 Maximum number of requested options that can be added to the 55 If set, custom callbacks for encapsulated vendor-specific [all …]
|
/Zephyr-latest/tests/drivers/can/timing/src/ |
D | main.c | 2 * Copyright (c) 2022-2024 Vestas Wind Systems A/S 5 * SPDX-License-Identifier: Apache-2.0 8 #include <zephyr/drivers/can.h> 25 * @brief Defines a set of CAN timing test values 35 * @brief List of CAN timing values to test. 52 * @brief List of CAN FD data phase timing values to test. 55 /* CiA 601-2 recommended data phase bitrates */ 66 * @brief Assert that a CAN timing struct matches the specified bitrate 68 * Assert that the values of a CAN timing struct matches the specified bitrate 69 * for a given CAN controller device instance. [all …]
|
/Zephyr-latest/modules/canopennode/ |
D | CO_driver.c | 4 * SPDX-License-Identifier: Apache-2.0 8 #include <zephyr/drivers/can.h> 75 if (!CANmodule || !CANmodule->rx_array || !CANmodule->configured) { in canopen_detach_all_rx_filters() 79 for (i = 0U; i < CANmodule->rx_size; i++) { in canopen_detach_all_rx_filters() 80 if (CANmodule->rx_array[i].filter_id != -ENOSPC) { in canopen_detach_all_rx_filters() 81 can_remove_rx_filter(CANmodule->dev, in canopen_detach_all_rx_filters() 82 CANmodule->rx_array[i].filter_id); in canopen_detach_all_rx_filters() 83 CANmodule->rx_array[i].filter_id = -ENOSPC; in canopen_detach_all_rx_filters() 99 for (i = 0; i < CANmodule->rx_size; i++) { in canopen_rx_callback() 100 buffer = &CANmodule->rx_array[i]; in canopen_rx_callback() [all …]
|
/Zephyr-latest/doc/hardware/peripherals/can/ |
D | controller.rst | 3 CAN Controller 13 Controller Area Network is a two-wire serial bus specified by the 14 Bosch CAN Specification, Bosch CAN with Flexible Data-Rate specification and the 15 ISO 11898-1:2003 standard. 16 CAN is mostly known for its application in the automotive domain. However, it 21 CAN controllers can only initialize when the bus is in the idle (recessive) 23 CAN RX is high, at least for a short time. This is also necessary for 26 The bit-timing as defined in ISO 11898-1:2003 looks as following: 31 :alt: CAN Timing 41 The bit-rate is calculated from the time of a time quantum and the values [all …]
|
/Zephyr-latest/subsys/mgmt/ec_host_cmd/ |
D | Kconfig | 4 # SPDX-License-Identifier: Apache-2.0 14 if EC_HOST_CMD 17 module-str = ec-host-commands 26 default 0 if EC_HOST_CMD_BACKEND_ESPI 27 default 0 if EC_HOST_CMD_BACKEND_SHI 28 default 256 if EC_HOST_CMD_BACKEND_UART 29 default 552 if EC_HOST_CMD_BACKEND_SPI 33 Some backend layers can define their own buffer, so the size can be zero to 34 avoid duplicating buffers. If multiple backends are used, the size has to be 39 default 256 if EC_HOST_CMD_BACKEND_ESPI [all …]
|
/Zephyr-latest/include/zephyr/debug/ |
D | gdbstub.h | 4 * SPDX-License-Identifier: Apache-2.0 40 /** Read/write alignment, 0 if using default alignment */ 56 * This array specifies which region of memory GDB can access 58 * memory read/write in GDB stub to memory that can be 81 * @return The length of the converted string, or 0 if an error occurred. 88 * @brief Check if a memory block can be read. 90 * This checks if the specified memory block can be read. 96 * @return True if memory block can be read, false otherwise. 101 * @brief Check if a memory block can be written into. 103 * This checks if the specified memory block can be written into. [all …]
|
/Zephyr-latest/doc/ |
D | zephyr.doxyfile.in | 12 # For lists, items can also be appended using: 20 # doxygen -x [configFile] 24 # doxygen -x_noenv [configFile] 26 #--------------------------------------------------------------------------- 28 #--------------------------------------------------------------------------- 31 # file that follow. The default is UTF-8 which is also the encoding used for all 35 # The default value is: UTF-8. 37 DOXYFILE_ENCODING = UTF-8 40 # double-quotes, unless you are using Doxywizard) that should identify the 47 # The PROJECT_NUMBER tag can be used to enter a project or revision number. This [all …]
|
/Zephyr-latest/soc/atmel/sam0/common/ |
D | Kconfig.saml2x | 2 # SPDX-License-Identifier: Apache-2.0 4 if SOC_SERIES_SAML21 || SOC_SERIES_SAMR34 || SOC_SERIES_SAMR35 11 These can be mitigated by inserting a small delay during the early boot 14 If you ever intend to attach a debugger, say y. 15 If you are confident that you will never attach a debugger to the 22 This can then be selected as the main clock reference for the SOC. 28 This can then be selected as the main clock reference for the SOC. 35 Enable the crystal oscillator (if disabled, expect a clock signal on 42 This can then be selected as the main clock reference for the SOC. 58 Note, this mode can only be used with an LDO regulator. [all …]
|
/Zephyr-latest/doc/develop/api/ |
D | terminology.rst | 7 allowed calling context (thread, ISR, pre-kernel), the effect of a call 11 if executing the function reaches a reschedule point 13 if executing the function can cause the invoking thread to sleep 14 :ref:`api_term_no-wait` 15 if a parameter to the function can prevent the invoking thread from 17 :ref:`api_term_isr-ok` 18 if the function can be safely called and will have its specified 20 :ref:`api_term_pre-kernel-ok` 21 if the function can be safely called before the kernel has been fully 25 if the function may return before the operation it initializes is [all …]
|