Lines Matching refs:regValue
176 uint16_t regValue; in WM8904_ModifyRegister() local
178 result = WM8904_ReadRegister(handle, reg, ®Value); in WM8904_ModifyRegister()
184 regValue &= (uint16_t)~mask; in WM8904_ModifyRegister()
185 regValue |= value; in WM8904_ModifyRegister()
187 return WM8904_WriteRegister(handle, reg, regValue); in WM8904_ModifyRegister()
1237 uint16_t regValue = 0U, regMask = 0U; in WM8904_SetChannelMute() local
1239 regValue = isMute ? 0x180U : 0x80U; in WM8904_SetChannelMute()
1245 ret = WM8904_ModifyRegister(handle, WM8904_ANALOG_OUT1_LEFT, regMask, regValue); in WM8904_SetChannelMute()
1251 ret = WM8904_ModifyRegister(handle, WM8904_ANALOG_OUT1_RIGHT, regMask, regValue); in WM8904_SetChannelMute()
1257 ret = WM8904_ModifyRegister(handle, WM8904_ANALOG_OUT2_LEFT, regMask, regValue); in WM8904_SetChannelMute()
1263 ret = WM8904_ModifyRegister(handle, WM8904_ANALOG_OUT2_RIGHT, regMask, regValue); in WM8904_SetChannelMute()
1301 uint8_t regAddr = 0, regBitMask = 0U, regValue = 0U; in WM8904_SetModulePower() local
1309 regValue = isEnabled ? 3U : 0U; in WM8904_SetModulePower()
1314 regValue = isEnabled ? 0xCU : 0U; in WM8904_SetModulePower()
1320 regValue = isEnabled ? 3U : 0U; in WM8904_SetModulePower()
1326 regValue = isEnabled ? 3U : 0U; in WM8904_SetModulePower()
1331 regValue = isEnabled ? 3U : 0U; in WM8904_SetModulePower()
1340 error = WM8904_ModifyRegister(handle, regAddr, regBitMask, regValue); in WM8904_SetModulePower()
1506 uint16_t regValue = 0U, regBitMask = 0xFU; in WM8904_SetPlay() local
1511 regValue |= (3U << 2U) | 3U; in WM8904_SetPlay()
1516 regValue &= (uint16_t) ~((3U << 2U) | 3U); in WM8904_SetPlay()
1519 return WM8904_ModifyRegister(handle, WM8904_ANALOG_OUT12_ZC, regBitMask, regValue); in WM8904_SetPlay()