Lines Matching refs:regValues

448     uint8_t regValues[6];  in PCA9420_EnableInterrupts()  local
453 result = PCA9420_ReadRegs(handle, PCA9420_SUB_INT0, regValues, sizeof(regValues)); in PCA9420_EnableInterrupts()
459 regValues[0] = regValues[2] = regValues[4] = 0U; /* Don't clear int status */ in PCA9420_EnableInterrupts()
461 regValues[1] &= (uint8_t)(~(source & 0xFFU)); /* SUB_INT0_MASK */ in PCA9420_EnableInterrupts()
462 regValues[3] &= (uint8_t)(~((source >> 8) & 0xFFU)); /* SUB_INT1_MASK */ in PCA9420_EnableInterrupts()
463 regValues[5] &= (uint8_t)(~((source >> 16) & 0xFFU)); /* SUB_INT2_MASK */ in PCA9420_EnableInterrupts()
465 result = PCA9420_WriteRegs(handle, PCA9420_SUB_INT0, regValues, sizeof(regValues)); in PCA9420_EnableInterrupts()
475 uint8_t regValues[6]; in PCA9420_DisableInterrupts() local
480 result = PCA9420_ReadRegs(handle, PCA9420_SUB_INT0, regValues, sizeof(regValues)); in PCA9420_DisableInterrupts()
486 regValues[0] = regValues[2] = regValues[4] = 0U; /* Don't clear int status */ in PCA9420_DisableInterrupts()
488 regValues[1] |= (uint8_t)(source & 0xFFU); /* SUB_INT0_MASK */ in PCA9420_DisableInterrupts()
489 regValues[3] |= (uint8_t)((source >> 8) & 0xFFU); /* SUB_INT1_MASK */ in PCA9420_DisableInterrupts()
490 regValues[5] |= (uint8_t)((source >> 16) & 0xFFU); /* SUB_INT2_MASK */ in PCA9420_DisableInterrupts()
492 result = PCA9420_WriteRegs(handle, PCA9420_SUB_INT0, regValues, sizeof(regValues)); in PCA9420_DisableInterrupts()
502 uint8_t regValues[6] = {0U}; in PCA9420_GetInterruptStatus() local
507 result = PCA9420_ReadRegs(handle, PCA9420_SUB_INT0, regValues, sizeof(regValues)); in PCA9420_GetInterruptStatus()
513 …return (((uint32_t)regValues[4]) << 16) | (((uint32_t)regValues[2]) << 8) | (uint32_t)regValues[0]; in PCA9420_GetInterruptStatus()
519 uint8_t regValues[6]; in PCA9420_ClearInterruptStatus() local
524 result = PCA9420_ReadRegs(handle, PCA9420_SUB_INT0, regValues, sizeof(regValues)); in PCA9420_ClearInterruptStatus()
530 regValues[0] = (uint8_t)(source & 0xFFU); /* SUB_INT1 */ in PCA9420_ClearInterruptStatus()
531 regValues[2] = (uint8_t)((source >> 8) & 0xFFU); /* SUB_INT2 */ in PCA9420_ClearInterruptStatus()
532 regValues[4] = (uint8_t)((source >> 16) & 0xFFU); /* SUB_INT3 */ in PCA9420_ClearInterruptStatus()
534 result = PCA9420_WriteRegs(handle, PCA9420_SUB_INT0, regValues, sizeof(regValues)); in PCA9420_ClearInterruptStatus()