Searched refs:rx_diag_buff (Results 1 – 3 of 3) sorted by relevance
/Zephyr-latest/drivers/gpio/ |
D | gpio_max14916.c | 27 static int max14916_pars_spi_diag(const struct device *dev, uint8_t *rx_diag_buff, uint8_t rw) in max14916_pars_spi_diag() argument 32 if (rx_diag_buff[0]) { in max14916_pars_spi_diag() 35 data->glob.interrupt.reg_bits.SHT_VDD_FLT = MAX149X6_GET_BIT(rx_diag_buff[0], 5); in max14916_pars_spi_diag() 36 data->glob.interrupt.reg_bits.OW_ON_FLT = MAX149X6_GET_BIT(rx_diag_buff[0], 4); in max14916_pars_spi_diag() 37 data->glob.interrupt.reg_bits.OW_OFF_FLT = MAX149X6_GET_BIT(rx_diag_buff[0], 3); in max14916_pars_spi_diag() 38 data->glob.interrupt.reg_bits.CURR_LIM = MAX149X6_GET_BIT(rx_diag_buff[0], 2); in max14916_pars_spi_diag() 39 data->glob.interrupt.reg_bits.OVER_LD_FLT = MAX149X6_GET_BIT(rx_diag_buff[0], 1); in max14916_pars_spi_diag() 41 if (MAX149X6_GET_BIT(rx_diag_buff[0], 0)) { in max14916_pars_spi_diag() 54 if (rw == MAX149x6_WRITE && (rx_diag_buff[1] & 0x0f)) { in max14916_pars_spi_diag() 66 MAX149X6_GET_BIT(rx_diag_buff[1], 0), MAX149X6_GET_BIT(rx_diag_buff[1], 1), in max14916_pars_spi_diag() [all …]
|
D | gpio_max14906.c | 27 static int max14906_pars_spi_diag(const struct device *dev, uint8_t *rx_diag_buff, uint8_t rw) in max14906_pars_spi_diag() argument 32 if (rx_diag_buff[0]) { in max14906_pars_spi_diag() 34 data->glob.interrupt.reg_bits.SHT_VDD_FAULT = MAX149X6_GET_BIT(rx_diag_buff[0], 5); in max14906_pars_spi_diag() 36 MAX149X6_GET_BIT(rx_diag_buff[0], 4); in max14906_pars_spi_diag() 37 data->glob.interrupt.reg_bits.OW_OFF_FAULT = MAX149X6_GET_BIT(rx_diag_buff[0], 3); in max14906_pars_spi_diag() 38 data->glob.interrupt.reg_bits.CURR_LIM = MAX149X6_GET_BIT(rx_diag_buff[0], 2); in max14906_pars_spi_diag() 39 data->glob.interrupt.reg_bits.OVER_LD_FAULT = MAX149X6_GET_BIT(rx_diag_buff[0], 1); in max14906_pars_spi_diag() 41 uint8_t globlf = MAX149X6_GET_BIT(rx_diag_buff[0], 0); in max14906_pars_spi_diag() 53 if (rw == MAX149x6_WRITE && (rx_diag_buff[1] & 0x0f)) { in max14906_pars_spi_diag() 64 MAX149X6_GET_BIT(rx_diag_buff[1], 0), MAX149X6_GET_BIT(rx_diag_buff[1], 1), in max14906_pars_spi_diag() [all …]
|
D | gpio_max149x6.h | 88 uint8_t *rx_diag_buff, uint8_t rw) in max149x6_reg_transceive() argument 141 if (rx_diag_buff != NULL) { in max149x6_reg_transceive() 142 rx_diag_buff[0] = local_rx_buff[0]; in max149x6_reg_transceive() 148 if ((MAX149x6_WRITE == rw) && (rx_diag_buff != NULL)) { in max149x6_reg_transceive() 149 rx_diag_buff[1] = local_rx_buff[1]; in max149x6_reg_transceive()
|