Set a system parameter.
Namespace:
Bespoke.Robotics.BrainStemAssembly: Bespoke.Robotics.BrainStem (in Bespoke.Robotics.BrainStem.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax
C# |
---|
public static void SetSystemParameter( byte iicAddress, SystemParameterType systemParameter, Object value ) |
Visual Basic (Declaration) |
---|
Public Shared Sub SetSystemParameter ( _ iicAddress As Byte, _ systemParameter As SystemParameterType, _ value As Object _ ) |
Visual C++ |
---|
public: static void SetSystemParameter( unsigned char iicAddress, SystemParameterType systemParameter, Object^ value ) |
Parameters
- iicAddress
- Type: System..::.Byte
The address of the IIC module referenced by the packet.
- systemParameter
- Type: Bespoke.Robotics.BrainStem..::.SystemParameterType
The system parameter to set.
- value
- Type: System..::.Object
The new value for the parameter. The value type and contents must match the system parameter. (e.g. SystemParameterType.IicBaudRate value type is IicBaudRateType)
Exceptions
Exception | Condition |
---|---|
System..::.ArgumentOutOfRangeException | Thrown if the system parameter is readonly or if the specified value is out of range. |
Bespoke.Robotics.BrainStem.Exceptions..::.CommandException | Thrown if there's an error processing the command. |