package dsptool
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- dsptool
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Type Members
- case class DoubleList(list: List[Double]) extends Product with Serializable
-
case class
FixData(raw: Double, q: QFormat, roundType: RoundType = getFixRound(), symmetric: Boolean = getFixSym()) extends Product with Serializable
Fixnum
Fixnum
- returns
FixData: -3.8125, Quantized by QFormat: SQ(8,4)
x.bin => 11000011 x.oct => 103 x.hex => c3
val x = FixData(-3.785333,SQ(8,4))
Example: - case class IntList(list: List[Int]) extends Product with Serializable
- case class LongList(list: List[Long]) extends Product with Serializable
Value Members
- object DoubleList extends Serializable
- object FixOff
-
object
FixOn
Usage:
Usage:
- returns
:FixData:-3.78533 FixOff
FixOff() val a = FixData(-3.785333,SQ(8,4))
Example: -
object
FixSwitch
- Attributes
- protected
- object IntList extends Serializable
- object LongList extends Serializable
- object fixDataTest
- object getFixSwitchState
-
object
toFixData
IntToFixData
IntToFixData
- returns
FixData: -5.125, QFormat: Q(8,4,signed)
toFixData(322111, SQ(8,4)) => FixData: -8.0, QFormat: Q(8,4,signed) toFixData(322111, UQ(8,4)) => FixData: 7.9375, QFormat: Q(8,4,unsigned) toFixData(-322111,SQ(8,4)) => FixData: -8.0, QFormat: Q(8,4,signed) toFixData(-322111,UQ(8,4)) => FixData: 0, QFormat: Q(8,4,unsigned) toFixData(-0x0f, SQ(8,4)) => FixData: -0.9375,QFormat: Q(8,4,signed)
val x = toFixData(0xFFAE,SQ(8,4))
Example: