Share via


Utility Class

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Provides a collection of helper functions you can use to configure settings for security, collections, driver manipulation, time, and idle CPU usage.

Inheritance Hierarchy

System. . :: . .Object
  Microsoft.SPOT.Hardware..::..Utility

Namespace:  Microsoft.SPOT.Hardware
Assembly:  Microsoft.SPOT.Native (in Microsoft.SPOT.Native.dll)

Syntax

'Declaration
Public NotInheritable Class Utility
public static class Utility
public ref class Utility abstract sealed
[<AbstractClass>]
[<Sealed>]
type Utility =  class end
public final class Utility

The Utility type exposes the following members.

Methods

  Name Description
Public methodStatic member Backlight Controls the backlight hardware feature.
Public methodStatic member CombineArrays(array<Byte> [] () [] [], array<Byte> [] () [] []) Combines all of the data from two arrays of bytes into one array.
Public methodStatic member CombineArrays(array<Byte> [] () [] [], Int32, Int32, array<Byte> [] () [] [], Int32, Int32) Combines ranges of data from two arrays of bytes into one array.
Public methodStatic member ComputeCRC Computes a cyclic redundancy check (CRC) from the specified byte array buffer.
Public methodStatic member ExtractRangeFromArray Extracts a linear section of data from a byte array.
Public methodStatic member ExtractValueFromArray Extracts a value from a byte array, using the specified position and size of the data objects in the array.
Public methodStatic member GetMachineTime Gets the machine time (system time).
Public methodStatic member InsertValueIntoArray Inserts a value at a specified position in a byte array.
Public methodStatic member Piezo Causes a sound to be emitted from the piezo speaker.
Public methodStatic member SetLocalTime Sets the system to the local time.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.SPOT.Hardware Namespace