Get signed integer values from one or more nybble.
Usage
nybbleToSignedInt(raw_dat, which = c("low", "high"))
Arguments
- raw_dat
raw
data (either a single value or avector
), from which a nybble will be extracted and converted.- which
A
character
string indicating whether the"low"
(default) or"high"
nybble ofraw_dat
needs to be converted into a signedinteger
.
Details
Nybbles are 4 bit values, where each byte (8 bits) holds two nybbles.
A high nybble (left-hand side of a byte) and a low nybble (right-hand
side of a byte). This function extracts a nybble from raw
data
and converts it into a signed integer
value ranging from -8 up to 7.
See also
Other nybble.functions:
nybble()
,
signedIntToNybble()
Other raw.operations:
as.raw()
,
nybble()
,
rawToCharNull()
,
rawToPTModule()
,
rawToSignedInt()
,
rawToUnsignedInt()
,
signedIntToNybble()
,
signedIntToRaw()
,
unsignedIntToRaw()
Other integer.operations:
nybble()
,
rawToSignedInt()
,
rawToUnsignedInt()
,
signedIntToNybble()
,
signedIntToRaw()
,
unsignedIntToRaw()
,
waveform()