katyo / uctl-rs

Generic control library for low-end hardware
2 stars 0 forks source link

Missing support for unsigned fixed types #1

Closed katyo closed 4 years ago

katyo commented 4 years ago

Currently signedness of fixed type determined by signedness of parameter B which sets width of mantissa in bits. This does not works as expected because typenum lacks arithmetic ops between unsigned and singned type-level number.

The easiest possible solution: switch to determining of signedness by signedness of the first parameter R which sets radix of fixed-point number.

katyo commented 4 years ago

Fixed quickly