/Zephyr-latest/drivers/gpio/ |
D | gpio_nct38xx_alert.c | 4 * SPDX-License-Identifier: Apache-2.0 28 /* Driver config */ 30 /* Alert GPIO pin */ 32 /* NCT38XX devices which share the same alert pin */ 34 /* Number of NCT38XX devices on the alert pin */ 40 /* Alert handler device */ 42 /* Alert pin callback */ 44 /* Alert worker */ 56 k_work_submit(&data->alert_worker); in nct38xx_alert_callback() 62 uint16_t alert, mask; in nct38xx_alert_is_active() local [all …]
|
D | gpio_rt1718s.c | 4 * SPDX-License-Identifier: Apache-2.0 9 * doesn't provide any API itself. The feature-specific API should be provided 33 k_work_submit(&data->alert_worker); in rt1718s_alert_callback() 39 const struct device *const dev = data->dev; in rt1718s_alert_worker() 40 const struct rt1718s_config *const config = dev->config; in rt1718s_alert_worker() local 41 uint16_t alert, mask; in rt1718s_alert_worker() local 44 /* Read alert and mask */ in rt1718s_alert_worker() 45 k_sem_take(&data->lock_tcpci, K_FOREVER); in rt1718s_alert_worker() 46 if (rt1718s_reg_burst_read(dev, RT1718S_REG_ALERT, (uint8_t *)&alert, in rt1718s_alert_worker() 47 sizeof(alert)) || in rt1718s_alert_worker() [all …]
|
D | gpio_nct38xx.c | 4 * SPDX-License-Identifier: Apache-2.0 21 /* Driver config */ 23 /* Multi-function device, parent to the NCT38xx GPIO controller */ 28 /* Alert handler */ 44 const struct gpio_nct38xx_config *const config = dev->config; in nct38xx_gpio_alert_handler() local 46 for (int i = 0; i < config->sub_gpio_port_num; i++) { in nct38xx_gpio_alert_handler() 47 gpio_nct38xx_dispatch_port_isr(config->sub_gpio_dev[i]); in nct38xx_gpio_alert_handler() 53 uint16_t alert, alert_mask = 0; in nct38xx_init_interrupt() local 55 struct gpio_nct38xx_data *data = dev->data; in nct38xx_init_interrupt() 57 k_sem_take(data->lock, K_FOREVER); in nct38xx_init_interrupt() [all …]
|
D | Kconfig.nct38xx | 4 # SPDX-License-Identifier: Apache-2.0 6 config GPIO_NCT38XX 7 bool "NCT38XX I2C-based GPIO chip" 13 Enable driver for NCT38XX I2C-based GPIO chip. 17 config GPIO_NCT38XX_INIT_PRIORITY 24 config GPIO_NCT38XX_PORT_INIT_PRIORITY 31 config GPIO_NCT38XX_ALERT 38 config GPIO_NCT38XX_ALERT_INIT_PRIORITY 39 int "NCT38XX GPIO alert handler init priority" 43 NCT38XX alert handler initialization priority. This initialization [all …]
|
D | Kconfig.rt1718s | 4 # SPDX-License-Identifier: Apache-2.0 7 bool "RT1718S I2C-based TCPC chip with GPIOs" 11 Enable driver GPIO for RT1718S I2C-based TCPC chip. 15 config RT1718S_INIT_PRIORITY 22 config GPIO_RT1718S_PORT_INIT_PRIORITY 29 config GPIO_RT1718S_INTERRUPT 30 bool "RT1718S alert handler" 32 Enable support for handling RT1718S Alert with a GPIO interrupt connected
|
D | gpio_rt1718s.h | 4 * SPDX-License-Identifier: Apache-2.0 55 /* RT1718S chip driver config */ 59 /* Alert GPIO pin */ 71 /* Alert pin callback */ 73 /* Alert worker */ 88 const struct rt1718s_config *const config = (const struct rt1718s_config *)dev->config; in rt1718s_reg_read_byte() local 90 return i2c_reg_read_byte_dt(&config->i2c_dev, reg_addr, val); in rt1718s_reg_read_byte() 106 const struct rt1718s_config *const config = (const struct rt1718s_config *)dev->config; in rt1718s_reg_burst_read() local 108 return i2c_burst_read_dt(&config->i2c_dev, start_addr, buf, num_bytes); in rt1718s_reg_burst_read() 122 const struct rt1718s_config *const config = (const struct rt1718s_config *)dev->config; in rt1718s_reg_write_byte() local [all …]
|
/Zephyr-latest/subsys/bluetooth/services/ias/ |
D | Kconfig.ias | 1 # Bluetooth GATT Immediate Alert Service 4 # SPDX-License-Identifier: Apache-2.0 7 bool "Support for GATT Immediate Alert Service [EXPERIMENTAL]" 18 config BT_IAS_SEC_NONE 21 config BT_IAS_SEC_ENC 24 config BT_IAS_SEC_AUTH 31 #### Immediate Alert Service Client ################################ 33 config BT_IAS_CLIENT 34 bool "Immediate Alert Service Client [Experimental]" 38 This option enables support for Immediate Alert Service Client
|
/Zephyr-latest/drivers/sensor/ti/ina23x/ |
D | Kconfig | 3 # SPDX-License-Identifier: Apache-2.0 5 config INA23X 15 config INA230 22 config INA237 29 config INA237_VSHUNT 43 config INA230_TRIGGER 47 …mpat_any_has_prop,$(DT_COMPAT_TI_INA230),alert-gpios) || $(dt_compat_any_has_prop,$(DT_COMPAT_TI_I… 50 interrupts are configured to line ALERT PIN.
|
D | ina230_trigger.c | 5 * SPDX-License-Identifier: Apache-2.0 20 const struct device *dev = (const struct device *)ina230->dev; in ina230_gpio_callback() 26 if (ina230->handler_alert) { in ina230_gpio_callback() 27 ina230->handler_alert(dev, ina230->trig_alert); in ina230_gpio_callback() 35 struct ina230_data *ina230 = dev->data; in ina230_trigger_set() 39 ina230->handler_alert = handler; in ina230_trigger_set() 40 ina230->trig_alert = trig; in ina230_trigger_set() 47 struct ina230_data *ina230 = dev->data; in ina230_trigger_mode_init() 48 const struct ina230_config *config = dev->config; in ina230_trigger_mode_init() local 51 /* setup alert gpio interrupt */ in ina230_trigger_mode_init() [all …]
|
D | ina237.c | 4 * SPDX-License-Identifier: Apache-2.0 14 #include <zephyr/dt-bindings/sensor/ina237.h> 19 /** @brief Calibration scaling value (scaled by 10^-5) */ 29 * @brief Scale die temperture from 0.125 degC/bit to micro-degrees C 36 val->val1 = value_microX / 1000000L; in micro_s32_to_sensor_value() 37 val->val2 = value_microX % 1000000L; in micro_s32_to_sensor_value() 42 val->val1 = value_microX / 1000000U; in micro_u64_to_sensor_value() 43 val->val2 = value_microX % 1000000U; in micro_u64_to_sensor_value() 49 const struct ina237_data *data = dev->data; in ina237_channel_get() 50 const struct ina237_config *config = dev->config; in ina237_channel_get() local [all …]
|
/Zephyr-latest/dts/bindings/sensor/ |
D | ti,ina230.yaml | 5 # SPDX-License-Identifier: Apache-2.0 10 The <zephyr/dt-bindings/sensor/ina230.h> file should be included in the 16 include: ti,ina23x-common.yaml 19 config: 28 alert-config: 30 description: Diag alert register, default matches the power-on reset value 32 adc-mode: 36 Default is the power-on reset value. 39 - "Shutdown single shot" 40 - "Shunt Voltage single shot" [all …]
|
D | ti,ina237.yaml | 4 # SPDX-License-Identifier: Apache-2.0 9 The <zephyr/dt-bindings/sensor/ina237.h> file should be included in the 15 include: ti,ina23x-common.yaml 18 config: 31 adc-config: 41 alert-config: 43 description: Diag alert register, default matches the power-on reset value 45 adc-mode: 49 Default is the power-on reset value. 52 - "Shutdown single shot" [all …]
|
/Zephyr-latest/drivers/sensor/microchip/tcn75a/ |
D | Kconfig | 2 # SPDX-License-Identifier: Apache-2.0 4 config TCN75A 18 config TCN75A_TRIGGER_NONE 21 config TCN75A_TRIGGER_OWN_THREAD 24 depends on $(dt_compat_any_has_prop,$(DT_COMPAT_MICROCHIP_TCN75A),alert-gpios) 27 config TCN75A_TRIGGER_GLOBAL_THREAD 30 depends on $(dt_compat_any_has_prop,$(DT_COMPAT_MICROCHIP_TCN75A),alert-gpios) 35 config TCN75A_TRIGGER 43 config TCN75A_THREAD_PRIORITY 47 config TCN75A_THREAD_STACK_SIZE
|
/Zephyr-latest/drivers/sensor/sensirion/sht3xd/ |
D | Kconfig | 4 # SPDX-License-Identifier: Apache-2.0 23 config SHT3XD_TRIGGER_NONE 26 config SHT3XD_TRIGGER_GLOBAL_THREAD 29 depends on $(dt_compat_any_has_prop,$(DT_COMPAT_SENSIRION_SHT3XD),alert-gpios) 32 config SHT3XD_TRIGGER_OWN_THREAD 35 depends on $(dt_compat_any_has_prop,$(DT_COMPAT_SENSIRION_SHT3XD),alert-gpios) 40 config SHT3XD_TRIGGER 43 config SHT3XD_THREAD_PRIORITY 50 config SHT3XD_THREAD_STACK_SIZE 64 config SHT3XD_REPEATABILITY_LOW [all …]
|
D | sht3xd_trigger.c | 4 * SPDX-License-Identifier: Apache-2.0 21 /* ret = (val + 45) * (2^16 - 1) / 175 */ in sht3xd_temp_processed_to_raw() 22 uval = (uint64_t)(val->val1 + 45) * 1000000U + val->val2; in sht3xd_temp_processed_to_raw() 30 /* ret = val * (2^16 -1) / 100 */ in sht3xd_rh_processed_to_raw() 31 uval = (uint64_t)val->val1 * 1000000U + val->val2; in sht3xd_rh_processed_to_raw() 40 struct sht3xd_data *data = dev->data; in sht3xd_attr_set() 45 data->t_low = sht3xd_temp_processed_to_raw(val); in sht3xd_attr_set() 47 data->rh_low = sht3xd_rh_processed_to_raw(val); in sht3xd_attr_set() 49 return -ENOTSUP; in sht3xd_attr_set() 54 temp = data->t_low; in sht3xd_attr_set() [all …]
|
/Zephyr-latest/samples/sensor/tmp108/ |
D | Kconfig | 4 # SPDX-License-Identifier: Apache-2.0 9 config APP_REPORT_TEMP_ALERTS 13 config APP_ENABLE_ONE_SHOT 21 config APP_TEMP_ALERT_HIGH_THRESH 22 int "RH [%] high threshold for alert trigger in celsius" 32 config APP_TEMP_ALERT_LOW_THRESH 33 int "RH [%] low threshold for alert trigger in celsius"
|
/Zephyr-latest/drivers/mfd/ |
D | mfd_ite_it8801.c | 4 * SPDX-License-Identifier: Apache-2.0 18 /* Alert GPIO pin */ 24 /* Alert pin callback */ 31 const struct mfd_it8801_config *config = dev->config; in it8801_check_vendor_id() local 35 /* Verify vendor ID registers(16-bits). */ in it8801_check_vendor_id() 37 ret = i2c_reg_read_byte_dt(&config->i2c_dev, it8801_id_verify[i].reg, &val); in it8801_check_vendor_id() 48 return -ENODEV; in it8801_check_vendor_id() 60 k_work_submit(&data->gpio_isr_worker); in it8801_gpio_callback() 66 struct mfd_it8801_data *data = mfd->data; in mfd_it8801_register_interrupt_callback() 68 sys_slist_append(&data->callback_list, &callback->node); in mfd_it8801_register_interrupt_callback() [all …]
|
/Zephyr-latest/drivers/adc/ |
D | adc_ads1x1x.c | 5 * 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 */ 112 /* ALERT/RDY pin is low when active (default) */ 114 /* ALERT/RDY pin is high when active */ 119 /* Non-latching comparator (default) */ [all …]
|
/Zephyr-latest/samples/sensor/sht3xd/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 32 printf("Device %s is not ready\n", dev->name); in main() 55 printf("SHT3XD: trigger config failed: %d\n", rc); in main() 58 printf("Alert outside %d..%d %%RH got %d\n", lo_thr.val1, in main() 82 printf("ALERT: humidity %d < %d\n", in main() 85 printf("ALERT: humidity %d > %d\n", in main() 88 printf("ALERT: humidity %d <= %d <= %d\n", in main()
|
/Zephyr-latest/drivers/usb_c/tcpc/ |
D | ucpd_stm32_priv.h | 4 * SPDX-License-Identifier: Apache-2.0 17 * @brief The packet type(SOP*) consists of 2-bytes 22 * @brief The message header consists of 2-bytes 34 * @brief UCPD alert mask used for enabling alerts 43 * @brief UCPD alert mask used for clearing alerts 52 * @brief UCPD alert mask used for enabling alerts 62 * @brief UCPD alert mask used for clearing alerts 71 * @brief UCPD alert mask for all alerts 98 #define UCPD_ANASUB_TO_RP(r) ((r - 1) & 0x3) 194 TX_MSG_NONE = -1, [all …]
|
D | ps8xxx.c | 3 * SPDX-License-Identifier: Apache-2.0 30 /** Callback for alert GPIO */ 32 /** Work item for alert handling out of interrupt context */ 37 /** Alert handler set by USB-C stack */ 39 /** Alert handler data set by USB-C stack */ 42 /** VCONN discharge callback set by USB-C stack */ 44 /** VCONN discharge callback data set by USB-C stack */ 61 /** GPIO specification for alert pin */ 69 const struct ps8xxx_cfg *cfg = dev->config; in tcpci_init_alert_mask() 76 ret = tcpci_write_reg16(&cfg->bus, TCPC_REG_ALERT_MASK, mask); in tcpci_init_alert_mask() [all …]
|
/Zephyr-latest/drivers/dma/ |
D | Kconfig.iproc_pax | 2 # SPDX-License-Identifier: Apache-2.0 4 config DMA_IPROC_PAX 6 prompt "Broadcom PAX(PCIE<->AXI) DMA driver" 11 config DMA_IPROC_PAX_V2 13 prompt "Broadcom PAX(PCIE<->AXI) DMA driver version 2" 18 config DMA_IPROC_PAX_V2_INIT_PRIORITY 27 config DMA_IPROC_PAX_DEBUG 37 config DMA_IPROC_PAX_POLL_MODE 42 config DMA_IPROC_PAX_IRQ_SYNC 45 PAX DMA API blocks until dma completion alert is [all …]
|
/Zephyr-latest/drivers/sensor/ti/tmp108/ |
D | tmp108.h | 3 * Copyright (c) 2022 T-Mobile USA, Inc. 5 * SPDX-License-Identifier: Apache-2.0 20 #define TI_TMP108_REG_LOW_LIMIT 0x02 /** Low alert set register */ 21 #define TI_TMP108_REG_HIGH_LIMIT 0x03 /** High alert set register */ 93 uint16_t CONF_POL; /** Alert pin Polarity configuration bit */ 95 uint16_t CONF_HYS1; /** Temperature hysteresis config 1 bit */ 96 uint16_t CONF_HYS0; /** Temperature hysteresis config 2 bit */ 103 #define TI_TMP108_GET_CONF(x, cfg) ((struct tmp108_config *)(x->config))->reg_def.cfg
|
/Zephyr-latest/drivers/smbus/ |
D | smbus_stm32.c | 3 * SPDX-License-Identifier: Apache-2.0 26 uint32_t config; member 37 struct smbus_stm32_data *data = dev->data; in smbus_stm32_smbalert_isr() 39 k_work_submit(&data->smbalert_work); in smbus_stm32_smbalert_isr() 45 const struct device *dev = data->dev; in smbus_stm32_smbalert_work() 47 LOG_DBG("%s: got SMB alert", dev->name); in smbus_stm32_smbalert_work() 49 smbus_loop_alert_devices(dev, &data->smbalert_callbacks); in smbus_stm32_smbalert_work() 54 struct smbus_stm32_data *data = dev->data; in smbus_stm32_smbalert_set_cb() 56 return smbus_callback_set(&data->smbalert_callbacks, cb); in smbus_stm32_smbalert_set_cb() 61 struct smbus_stm32_data *data = dev->data; in smbus_stm32_smbalert_remove_cb() [all …]
|
/Zephyr-latest/drivers/input/ |
D | input_ite_it8801_kbd.c | 4 * SPDX-License-Identifier: Apache-2.0 56 const struct kbd_it8801_config *config = dev->config; in kbd_it8801_drive_column() local 61 /* Tri-state all outputs. KSO[22:11, 6:0] output high */ in kbd_it8801_drive_column() 68 kso_val = config->kso_mapping[col]; in kbd_it8801_drive_column() 71 ret = i2c_reg_write_byte_dt(&config->i2c_dev, config->reg_ksomcr, kso_val); in kbd_it8801_drive_column() 80 const struct kbd_it8801_config *const config = dev->config; in kbd_it8801_read_row() local 84 ret = i2c_reg_read_byte_dt(&config->i2c_dev, config->reg_ksidr, &value); in kbd_it8801_read_row() 89 /* Bits are active-low, so invert returned levels */ in kbd_it8801_read_row() 95 const struct kbd_it8801_config *const config = dev->config; in it8801_input_alert_handler() local 99 ret = i2c_reg_read_byte_dt(&config->i2c_dev, config->reg_ksieer, &ksieer_val); in it8801_input_alert_handler() [all …]
|