Beispiel #1
0
        /// <summary>
        /// Asynchronously reads the value of a single-precision floating point register with
        /// the specified address.
        /// </summary>
        /// <param name="address">The address of the register to read.</param>
        /// <returns>
        /// A task that represents the asynchronous read operation. The value of the <see cref="Task{TResult}.Result"/>
        /// parameter contains the value of the register.
        /// </returns>
        public async Task <float> ReadSingleAsync(int address)
        {
            var reply = await CommandAsync(HarpCommand.ReadSingle(address));

            return(reply.GetPayloadSingle());
        }