Difference between revisions of "Core.Terms.GetBit"
Jump to navigation
Jump to search
(2 intermediate revisions by the same user not shown) | |||
Line 19: | Line 19: | ||
{{TableRowPropertiesHeader}} | {{TableRowPropertiesHeader}} | ||
{{TableRowPropertie1| ByteFieldTerm | [[Core.DataTypes.ComplexDataType.ByteField|ByteField]] | [[Term]] | - | [1] | Source ByteField}} | {{TableRowPropertie1| ByteFieldTerm | [[Core.DataTypes.ComplexDataType.ByteField|ByteField]] | [[Term]] | - | [1] | Source ByteField}} | ||
− | {{TableRowPropertie2| Index | | + | {{TableRowPropertie2| Index | [[Core.DataTypes.SimpleDataType.Integer|Integer]] | [[Term]] | - | [1] | Zero based index of the byte in the ByteField}} |
− | {{TableRowPropertie1| Position | | + | {{TableRowPropertie1| Position | [[Core.DataTypes.SimpleDataType.Integer|Integer]] | [[Term]] | - | [1] | Zero based index of the bits in the corresponding byte}} |
|} | |} | ||
Latest revision as of 08:50, 16 February 2016
Contents
Classification
Name | GetBit |
Short Description | Value a bit at a specified position in the ByteField |
Class | Term |
Extension | OTX Core library |
Group | ByteField operations |
Exceptions | - |
Checker Rules | - |
Standard Compliant | Yes |
OTL Syntax
Value = ByteField.GetBit(ByteFieldTerm, IntegerTerm, IntegerTerm);
Description
GetBit is a term, which returns true as a result, if the bit at the corresponding position in the ByteField has the value 1, otherwise false .
![]() |
Important: Please keep in mind that this TermActivity in the form of an activity exists and no text can be entered. According to the respective ActionNode can further properties are added. |
Return Value
The Term returns the value, see table below.
![]()
In OTX, Terms are categorized according to its return data type!
Data Type | Description |
Boolean | Return of the value of the bits in the operands |
Properties
Name | Data Type | Class | Default | Cardinality | Description |
ByteFieldTerm | ByteField | Term | - | [1] | Source ByteField |
Index | Integer | Term | - | [1] | Zero based index of the byte in the ByteField |
Position | Integer | Term | - | [1] | Zero based index of the bits in the corresponding byte |
Examples
Boolean result;
result = ByteField.GetBit(&1234, 1, 1);
//Returns result = false
See also
BitwiseAnd
BitwiseOr
BitwiseXor
BitwiseNot
ByteFieldGetSize
SubByteField