Ejemplo n.º 1
0
        public static uint ReadU32(IntPtr ipc, uint address)
        {
            uint value = (uint)Read(ipc, address, IPCCommand.MsgRead32);

            Error = GetError(ipc);
            return(value);
        }
Ejemplo n.º 2
0
        public static float ReadFloat(IntPtr ipc, uint address)
        {
            uint value = (uint)Read(ipc, address, IPCCommand.MsgRead32);

            Error = GetError(ipc);
            byte[] floatBytes = BitConverter.GetBytes(value);
            return(BitConverter.ToSingle(floatBytes, 0));
        }
Ejemplo n.º 3
0
        public static void WriteFloat(IntPtr ipc, uint address, float value)
        {
            byte[] floatBytes = BitConverter.GetBytes(value);
            uint   uintValue  = BitConverter.ToUInt32(floatBytes);

            Write(ipc, address, uintValue, IPCCommand.MsgWrite32);
            Error = GetError(ipc);
        }
Ejemplo n.º 4
0
 public static void WriteU32(IntPtr ipc, uint address, uint value)
 {
     Write(ipc, address, value, IPCCommand.MsgWrite32);
     Error = GetError(ipc);
 }