Lines Matching refs:u16Reg

306 MS_U8 _JPD_ReadByte(MS_U16 u16Reg)
308 if ((u16Reg % 2) == 0) // low byte
310 return _LOWBYTE(_RIU_REG16(JPD_RIU_MAP+((u16Reg)*2)));
314 u16Reg -= 1;
315 return _HIGHBYTE(_RIU_REG16(JPD_RIU_MAP+((u16Reg)*2)));
319 void _JPD_WriteByte(MS_U16 u16Reg, MS_U8 u8Value)
321 if ((u16Reg % 2) == 0) // low byte
323 _RIU_REG16(JPD_RIU_MAP+((u16Reg)*2))
324 = u8Value | (_RIU_REG16(JPD_RIU_MAP+((u16Reg)*2))&0xFF00);
328 u16Reg -= 1 ;
329 _RIU_REG16(JPD_RIU_MAP+((u16Reg)*2))
330 = (u8Value<<8) | (_RIU_REG16(JPD_RIU_MAP+((u16Reg)*2))&0x00FF);
334 MS_U16 _JPD_Read2Byte(MS_U16 u16Reg)
338 if ((u16Reg % 2) == 0) // low byte
340 u16RegData = _RIU_REG16(JPD_RIU_MAP+((u16Reg)*2));
345 u16Reg = u16Reg - 1;
346 u16RegData = _HIGHBYTE(_RIU_REG16(JPD_RIU_MAP+((u16Reg)*2)));
347 u16Reg = u16Reg + 2;
348 u16RegData |= _LOWBYTE(_RIU_REG16(JPD_RIU_MAP+((u16Reg)*2)));
354 void _JPD_Write2Byte(MS_U16 u16Reg, MS_U16 u16Value)
356 if ((u16Reg % 2) == 0) // low byte
358 _RIU_REG16(JPD_RIU_MAP + ((u16Reg)*2)) = u16Value;
362 _JPD_WriteByte(u16Reg, (MS_U8)(u16Value&0x00FF));
363 _JPD_WriteByte(u16Reg+1, (MS_U8)(u16Value>>8));
367 MS_U32 _JPD_Read4Byte(MS_U16 u16Reg)
371 if ((u16Reg % 2) == 0) // low byte
373 u32RegData |= _JPD_Read2Byte(u16Reg);
374 u32RegData |= (_JPD_Read2Byte(u16Reg+2) << 16);
378 u32RegData |= _JPD_ReadByte(u16Reg);
379 u32RegData |= (_JPD_Read2Byte(u16Reg+1) << 8);
380 u32RegData |= (_JPD_ReadByte(u16Reg+3) << 24);
386 void _JPD_Write4Byte(MS_U16 u16Reg, MS_U32 u32Value)
388 if ((u16Reg % 2) == 0) // low byte
390 _JPD_Write2Byte(u16Reg, (MS_U16)u32Value);
391 _JPD_Write2Byte(u16Reg+2, (MS_U16)(u32Value>>16));
395 _JPD_WriteByte(u16Reg, (MS_U8)(u32Value));
396 _JPD_Write2Byte(u16Reg+1, (MS_U16)(u32Value>>8));
397 _JPD_WriteByte(u16Reg+3, (MS_U8)(u32Value>>24));
407 void __HAL_JPD_Write4Byte(MS_U16 u16Reg, MS_U32 u32Value)
409 _JPD_Write4Byte(u16Reg, u32Value);
413 MS_U32 read_value = _JPD_Read4Byte(u16Reg);
415 … Byte Failed!! Reg = 0x%04X, write_value = 0x%lX, read_value = 0x%lX\n", u16Reg, u32Value, read_va…
426 MS_U32 __HAL_JPD_Read4Byte(MS_U16 u16Reg)
428 return _JPD_Read4Byte(u16Reg);
438 void __HAL_JPD_Write2Byte(MS_U16 u16Reg, MS_U16 u16Value)
440 _JPD_Write2Byte(u16Reg, u16Value);
444 MS_U16 read_value = _JPD_Read2Byte(u16Reg);
446 …yte Failed!! Reg = 0x%04X, write_value = 0x%04X, read_value = 0x%04X\n", u16Reg, u16Value, read_va…
457 MS_U16 __HAL_JPD_Read2Byte(MS_U16 u16Reg)
459 return _JPD_Read2Byte(u16Reg);
469 void __HAL_JPD_WriteByte(MS_U16 u16Reg, MS_U8 u8Value)
471 _JPD_WriteByte(u16Reg, u8Value);
475 MS_U8 read_value = _JPD_ReadByte(u16Reg);
477 …yte Failed!! Reg = 0x%04X, write_value = 0x%04X, read_value = 0x%04X\n", u16Reg, u8Value, read_val…
488 MS_U8 __HAL_JPD_ReadByte(MS_U16 u16Reg)
490 return _JPD_ReadByte(u16Reg);
500 void __HAL_JPD_WriteBit(MS_U16 u16Reg, MS_BOOL status, MS_U8 u8Bit)
502 MS_U8 u8Tmp = __HAL_JPD_ReadByte(u16Reg);
507 __HAL_JPD_WriteByte(u16Reg, u8Tmp);
516 MS_U8 __HAL_JPD_ReadBit(MS_U16 u16Reg, MS_U8 u8Bit)
518 MS_U8 u8Tmp = __HAL_JPD_ReadByte(u16Reg);