nn::math::GetBits Function

Syntax

template <typename T>
T GetBits(
     bit32 v,
     int pos,
     int len
);

Template Arguments

Name Description
T Return Value Type

Arguments

Name Description
in v Target value
in pos The position from the least significant bit
in len Extraction range

Return Values

Value extracted from v

Description

Obtains the bit values for the specified range.


CONFIDENTIAL