Lines Matching refs:rx_diag_buff

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()
65 MAX149X6_GET_BIT(rx_diag_buff[1], 2), MAX149X6_GET_BIT(rx_diag_buff[1], 3)); in max14906_pars_spi_diag()
66 if (rx_diag_buff[1] & 0x0f) { in max14906_pars_spi_diag()
67 LOG_ERR("[DIAG] gpio_max14906_diag_chan_get(%x)\n", rx_diag_buff[1] & 0x0f); in max14906_pars_spi_diag()
79 uint8_t rx_diag_buff[2]; in max14906_reg_trans_spi_diag() local
85 uint8_t ret = max149x6_reg_transceive(dev, addr, tx, rx_diag_buff, rw); in max14906_reg_trans_spi_diag()
87 if (max14906_pars_spi_diag(dev, rx_diag_buff, rw)) { in max14906_reg_trans_spi_diag()