Home
last modified time | relevance | path

Searched +full:positive +full:- +full:port +full:- +full:input (Results 1 – 22 of 22) sorted by relevance

/Zephyr-latest/samples/sensor/mcux_lpcmp/
DREADME.rst1 .. zephyr:code-sample:: mcux_lpcmp
2 :name: NXP MCUX Low-power Analog Comparator (LPCMP)
3 :relevant-api: sensor_interface
5 Get analog comparator data from an NXP MCUX Low-power Analog Comparator (LPCMP).
10 This sample show how to use the NXP MCUX Low-power Analog Comparator (LPCMP) driver.
12 In this application, the negative input port of the LPCMP is set to 7 which
13 means the input voltage comes from the LPCMP internal DAC, the reference
18 The positive input port is set to 0, the user needs to check the reference
19 manual and board schematic to confirm which specific port is used and can
20 connect an external voltage to that port and change the input voltage to
[all …]
/Zephyr-latest/tests/drivers/build_all/comparator/mcux_acmp/
Dmke15z7_mux_dac.dts4 * SPDX-License-Identifier: Apache-2.0
10 pinctrl-0 = <&cmp0_default>;
11 pinctrl-names = "default";
14 positive-mux-input = "IN0";
15 positive-port-input = "MUX";
16 negative-mux-input = "IN0";
17 negative-port-input = "DAC";
19 dac-vref-source = "VIN1";
20 dac-value = <128>;
21 dac-enable;
Dmimxrt1176_mux_dac.dts4 * SPDX-License-Identifier: Apache-2.0
11 drive-strength = "high";
12 bias-pull-up;
13 slew-rate = "fast";
20 pinctrl-0 = <&acmp1_default>;
21 pinctrl-names = "default";
23 positive-mux-input = "IN2";
24 positive-port-input = "MUX";
25 negative-mux-input = "IN2";
26 negative-port-input = "DAC";
[all …]
/Zephyr-latest/tests/drivers/comparator/gpio_loopback/boards/
Dfrdm_ke15z.overlay4 * SPDX-License-Identifier: Apache-2.0
7 #include <nxp/kinetis/MKE17Z256VLL7-pinctrl.h>
8 #include <zephyr/dt-bindings/gpio/gpio.h>
16 test-comp = &cmp0;
20 test-gpios = <&gpioa 1 GPIO_ACTIVE_HIGH>;
32 drive-strength = "high";
38 pinctrl-0 = <&cmp0_default>;
39 pinctrl-names = "default";
42 positive-mux-input = "IN0";
43 positive-port-input = "MUX";
[all …]
/Zephyr-latest/dts/bindings/comparator/
Dnxp,kinetis-acmp.yaml3 # SPDX-License-Identifier: Apache-2.0
11 compatible = "nxp,kinetis-acmp";
20 positive and negative inputs, and routing them using pinctrl:
32 pinctrl-0 = <&acmp0_default>;
33 pinctrl-names = "default";
35 positive-mux-input = "IN0";
36 negative-mux-input = "IN1";
39 compatible: "nxp,kinetis-acmp"
42 - base.yaml
43 - pinctrl-device.yaml
[all …]
/Zephyr-latest/include/zephyr/drivers/sensor/
Dmcux_acmp.h5 * SPDX-License-Identifier: Apache-2.0
70 * Analog Comparator Digital-to-Analog Converter voltage
74 /** Analog Comparator Digital-to-Analog Converter value. */
76 /** Analog Comparator positive port input. */
78 /** Analog Comparator positive mux input. */
80 /** Analog Comparator negative port input. */
82 /** Analog Comparator negative mux input. */
85 /** Analog Comparator Positive Channel Discrete Mode Enable. */
/Zephyr-latest/samples/sensor/mcux_acmp/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
43 /* Positive input port set to MUX */
46 /* Positive input channel */
50 /* Negative input port set to DAC */
53 /* Negative input channel */
83 printf("ACMP input above threshold\n"); in acmp_input_handler()
85 printf("ACMP input below threshold\n"); in acmp_input_handler()
94 acmp_input_handler((int16_t)trigger->type == in acmp_trigger_handler()
137 printf("Adjust ACMP input voltage by turning the potentiometer\n"); in main()
/Zephyr-latest/drivers/adc/
Dadc_ads1x1x.c5 * SPDX-License-Identifier: Apache-2.0
85 /* +/-6.144V range = Gain 1/3 */
87 /* +/-4.096V range = Gain 1/2 */
89 /* +/-2.048V range = Gain 1 (default) */
91 /* +/-1.024V range = Gain 2 */
93 /* +/-0.512V range = Gain 4 */
95 /* +/-0.256V range = Gain 8 */
119 /* Non-latching comparator (default) */
169 const struct ads1x1x_config *config = dev->config; in ads1x1x_setup_rdy_pin()
171 ? GPIO_INPUT | config->alert_rdy.dt_flags in ads1x1x_setup_rdy_pin()
[all …]
Dadc_max1125x.c4 * SPDX-License-Identifier: Apache-2.0
241 k_sem_give(&data->data_ready_signal); in max1125x_data_ready_handler()
248 const struct max1125x_config *config = dev->config; in max1125x_read_reg()
271 ret = spi_transceive_dt(&config->bus, &tx, &rx); in max1125x_read_reg()
286 const struct max1125x_config *config = dev->config; in max1125x_write_reg()
293 ret = spi_write_dt(&config->bus, &tx); in max1125x_write_reg()
305 const struct max1125x_config *config = dev->config; in max1125x_send_command()
310 ret = spi_write_dt(&config->bus, &tx); in max1125x_send_command()
321 const struct max1125x_data *data = dev->data; in max1125x_start_conversion()
323 return max1125x_send_command(dev, MAX1125X_CMD_SEQUENCER, data->rate); in max1125x_start_conversion()
[all …]
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 …]
Dadc_lmp90xxx.c4 * SPDX-License-Identifier: Apache-2.0
52 /* LMP90xxx channel input and configuration registers */
106 #define LMP90XXX_HAS_DRDYB(config) (config->drdyb.port != NULL)
172 const struct lmp90xxx_config *config = dev->config; in lmp90xxx_read_reg()
173 struct lmp90xxx_data *data = dev->data; in lmp90xxx_read_reg()
187 return -EINVAL; in lmp90xxx_read_reg()
192 return -EWOULDBLOCK; in lmp90xxx_read_reg()
195 k_mutex_lock(&data->ura_lock, K_FOREVER); in lmp90xxx_read_reg()
197 if (ura != data->ura) { in lmp90xxx_read_reg()
225 err = spi_transceive_dt(&config->bus, &tx, &rx); in lmp90xxx_read_reg()
[all …]
/Zephyr-latest/drivers/interrupt_controller/
Dintc_ioapic.c2 * Copyright (c) 1997-1998, 2000-2002, 2004, 2006-2008, 2011-2015 Wind River
5 * SPDX-License-Identifier: Apache-2.0
19 * The 8259A interrupt controller is intended for use in a uni-processor
20 * system, IO APIC can be used in either a uni-processor or multi-processor
23 * - Method of Interrupt Transmission. The IO APIC transmits interrupts
24 * through a 3-wire bus and interrupts are handled without the need for
26 * - Interrupt Priority. The priority of interrupts in the IO APIC is
29 * - More Interrupts. The IO APIC supports a total of 24 interrupts.
31 * The IO APIC unit consists of a set of interrupt input signals, a 24-entry
32 * by 64-bit Interrupt Redirection Table, programmable registers, and a message
[all …]
/Zephyr-latest/subsys/lorawan/services/
Dfrag_transport.c2 * Copyright (c) 2022-2024 Libre Solar Technologies GmbH
3 * Copyright (c) 2022-2024 tado GmbH
6 * LoRaMac-node firmware repository https://github.com/Lora-net/LoRaMac-node
9 * SPDX-License-Identifier: Apache-2.0
32 * This implementation only supports TS004-1.0.0.
61 /** Multicast groups allowed to input to this frag session */
67 /** Number of fragments of the data block for this session, max. 2^14-1 */
84 /** Application-specific descriptor for the data block, e.g. firmware version */
104 static void frag_transport_package_callback(uint8_t port, uint8_t flags, int16_t rssi, int8_t snr, in frag_transport_package_callback() argument
113 __ASSERT(port == LORAWAN_PORT_FRAG_TRANSPORT, "Wrong port %d", port); in frag_transport_package_callback()
[all …]
/Zephyr-latest/drivers/input/
Dinput_gpio_qdec.c4 * SPDX-License-Identifier: Apache-2.0
14 #include <zephyr/input/input.h>
52 /* Positive transitions */
66 const struct gpio_qdec_config *cfg = dev->config; in gpio_qdec_irq_setup()
71 const struct gpio_dt_spec *gpio = &cfg->ab_gpio[i]; in gpio_qdec_irq_setup()
83 const struct gpio_qdec_config *cfg = dev->config; in gpio_qdec_idle_polling_mode()
85 if (cfg->idle_poll_time_us > 0) { in gpio_qdec_idle_polling_mode()
94 const struct gpio_qdec_config *cfg = dev->config; in gpio_qdec_poll_mode()
95 struct gpio_qdec_data *data = dev->data; in gpio_qdec_poll_mode()
101 k_timer_start(&data->sample_timer, K_NO_WAIT, in gpio_qdec_poll_mode()
[all …]
Dinput_pinnacle.c4 * SPDX-License-Identifier: Apache-2.0
18 #include <zephyr/input/input.h>
27 * Standard registers have 5-bit addresses, BIT[4:0], that range from
136 #define PINNACLE_SPI_FC 0xFC /* Auto-increment byte */
217 const struct pinnacle_config *config = dev->config; in pinnacle_bus_is_ready()
219 return config->bus.is_ready(&config->bus); in pinnacle_bus_is_ready()
224 const struct pinnacle_config *config = dev->config; in pinnacle_write()
226 return config->bus.write(&config->bus, address, value); in pinnacle_write()
231 const struct pinnacle_config *config = dev->config; in pinnacle_seq_write()
233 return config->bus.seq_write(&config->bus, address, value, count); in pinnacle_seq_write()
[all …]
/Zephyr-latest/doc/services/shell/
Dindex.rst13 This module allows you to create and handle a shell with a user-defined command
15 interaction is required. This module is a Unix-like shell with these features:
22 * Built-in commands: :command:`clear`, :command:`shell`, :command:`colors`,
30 * Built-in handler to display help for the commands.
48 The module can be connected to any transport for command input and output.
59 * DUMMY - not a physical transport layer.
68 .. code-block:: none
70 telnet <ip address> <port>
80 `tab completion <tab-feature_>`_, and `history <history-feature_>`_
86 To configure Shell USB CDC ACM backend, simply add the snippet ``cdc-acm-console``
[all …]
/Zephyr-latest/boards/phytec/reel_board/doc/
Dindex.rst11 cooperation with Zephyr Project for the Hackathon - "Get Connected".
12 The board has a built-in debug adapter based on the DAPLink interface
21 * low-power, low-cost human-machine interface (HMI) for remote
28 Cortex |reg|-M4F SoC with an integrated 2.4 GHz transceiver supporting Bluetooth
36 On the front of the board are RGB-LED, ADPS9960 and HDC1010 sensors,
38 The RGB-LED is controlled by the nRF52840 via GPIO pins.
47 MMA8652FC is a 12-bit Digital Accelerometer.
82 +--------------+--------------------+----------------------+-------------------+
85 | Good Display | HINK-E0213 | SSD1673 / | reel_board |
87 +--------------+--------------------+----------------------+-------------------+
[all …]
/Zephyr-latest/boards/espressif/esp_wrover_kit/doc/
Dindex.rst6 ESP-WROVER-KIT is an ESP32-based development board produced by `Espressif <https://www.espressif.co…
8 ESP-WROVER-KIT features the following integrated components:
10 - ESP32-WROVER-E module
11 - LCD screen
12 - MicroSD card slot
14 Its another distinguishing feature is the embedded FTDI FT2232HL chip - an advanced multi-interface
16 without a separate JTAG debugger. ESP-WROVER-KIT makes development convenient, easy, and
17 cost-effective.
26 For more information, check `ESP32-WROVER-E Datasheet`_ and `ESP32 Datasheet`_.
31 The block diagram below shows the main components of ESP-WROVER-KIT and their interconnections.
[all …]
/Zephyr-latest/drivers/dai/intel/ssp/
Dssp.c4 * SPDX-License-Identifier: Apache-2.0
22 #define dai_set_drvdata(dai, data) (dai->priv_data = data)
23 #define dai_get_drvdata(dai) dai->priv_data
24 #define dai_get_plat_data(dai) dai->ssp_plat_data
25 #define dai_get_mn(dai) dai->ssp_plat_data->mn_inst
26 #define dai_get_ftable(dai) dai->ssp_plat_data->ftable
27 #define dai_get_fsources(dai) dai->ssp_plat_data->fsources
28 #define dai_mn_base(dai) dai->ssp_plat_data->mn_inst->base
29 #define dai_base(dai) dai->ssp_plat_data->base
30 #define dai_ip_base(dai) dai->ssp_plat_data->ip_base
[all …]
/Zephyr-latest/drivers/modem/
Dhl7800.c4 * SPDX-License-Identifier: Apache-2.0
211 #define MDM_INVALID_SOCKET_ID -1
217 #define SIZE_WITHOUT_NUL(v) (sizeof(v) - SIZE_OF_NUL)
221 .cmd = cmd_, .cmd_len = (uint16_t)sizeof(cmd_) - 1, \
250 #define RSSI_UNKNOWN -999
294 /* The ? can be a + or - */
301 #define TIME_STRING_TO_TM_STRUCT_YEAR_OFFSET (2000 - 1900)
373 static const char EOF_PATTERN[] = "--EOF--Pattern--";
434 /* GPIO PORT devices */
598 sock->allocated = true; in alloc_stale_socket()
[all …]
/Zephyr-latest/doc/releases/
Drelease-notes-3.3.rst14 * Introduced :ref:`USB-C <usbc_api>` device stack with PD (power delivery)
17 CMSIS-DSP as the default backend.
30 * CVE-2023-0359: Under embargo until 2023-04-20
32 * CVE-2023-0779: Under embargo until 2023-04-22
66 removed in favor of new :dtcompatible:`zephyr,flash-disk` devicetree binding.
71 * Starting from this release ``zephyr-`` prefixed tags won't be created
82 image states). Use of a truncated hash or non-sha256 hash will still work
88 registration function at boot-up. If applications register this then
93 application code, these will now automatically be registered at boot-up (this
129 This may cause out-of-tree scripts or commands to fail if they have relied
[all …]
Drelease-notes-2.7.rst17 * Support for M-Profile Vector Extensions (MVE) on ARMv8.1-M
18 * Improved thread safety for Newlib and C++ on SMP-capable systems
20 * New Action-based Power Management API
23 * Linker Support for Tightly-Coupled Memory in RISC-V
25 * Support for extended PCI / PCIe capabilities, improved MIS-X support
33 * The kernel now supports both 32- and 64-bit architectures
36 * We added support for Point-to-Point Protocol (PPP)
37 * We added support for UpdateHub, an end-to-end solution for over-the-air device updates
38 * We added support for ARM Cortex-R Architecture
40 * Expanded support for ARMv6-M architecture
[all …]