Beispiel #1
0
        /// <summary>
        /// Asynchronously reads the value of a 16-bit signed integer 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 <short> ReadInt16Async(int address)
        {
            var reply = await CommandAsync(HarpCommand.ReadInt16(address));

            return(reply.GetPayloadInt16());
        }