mirror of
https://github.com/aicodix/modem.git
synced 2026-04-27 22:35:41 +00:00
added support for QAM4096
This commit is contained in:
parent
cf126158b1
commit
c0fedcbc57
4 changed files with 83 additions and 1 deletions
|
|
@ -105,6 +105,8 @@ struct Decoder : Common
|
|||
return QuadratureAmplitudeModulation<256, cmplx, code_type>::map(b);
|
||||
case 10:
|
||||
return QuadratureAmplitudeModulation<1024, cmplx, code_type>::map(b);
|
||||
case 12:
|
||||
return QuadratureAmplitudeModulation<4096, cmplx, code_type>::map(b);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -125,6 +127,8 @@ struct Decoder : Common
|
|||
return QuadratureAmplitudeModulation<256, cmplx, code_type>::soft(b, c, precision);
|
||||
case 10:
|
||||
return QuadratureAmplitudeModulation<1024, cmplx, code_type>::soft(b, c, precision);
|
||||
case 12:
|
||||
return QuadratureAmplitudeModulation<4096, cmplx, code_type>::soft(b, c, precision);
|
||||
}
|
||||
}
|
||||
void demap_hard(code_type *b, cmplx c, int bits)
|
||||
|
|
@ -144,6 +148,8 @@ struct Decoder : Common
|
|||
return QuadratureAmplitudeModulation<256, cmplx, code_type>::hard(b, c);
|
||||
case 10:
|
||||
return QuadratureAmplitudeModulation<1024, cmplx, code_type>::hard(b, c);
|
||||
case 12:
|
||||
return QuadratureAmplitudeModulation<4096, cmplx, code_type>::hard(b, c);
|
||||
}
|
||||
}
|
||||
void shuffle(code_type *dest, const code_type *src, int order)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue