Lines Matching refs:rx_diag_buff
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()
67 MAX149X6_GET_BIT(rx_diag_buff[1], 2), MAX149X6_GET_BIT(rx_diag_buff[1], 3), in max14916_pars_spi_diag()
68 MAX149X6_GET_BIT(rx_diag_buff[1], 4), MAX149X6_GET_BIT(rx_diag_buff[1], 5), in max14916_pars_spi_diag()
69 MAX149X6_GET_BIT(rx_diag_buff[1], 6), MAX149X6_GET_BIT(rx_diag_buff[1], 7)); in max14916_pars_spi_diag()
71 if (rx_diag_buff[1]) { in max14916_pars_spi_diag()
72 LOG_ERR("[DIAG] gpio_max14916_diag_chan_get(%x)\n", rx_diag_buff[1] & 0x0f); in max14916_pars_spi_diag()
84 uint8_t rx_diag_buff[2]; in max14916_reg_trans_spi_diag() local
90 uint8_t ret = max149x6_reg_transceive(dev, addr, tx, rx_diag_buff, rw); in max14916_reg_trans_spi_diag()
92 if (max14916_pars_spi_diag(dev, rx_diag_buff, rw)) { in max14916_reg_trans_spi_diag()