internal static extern void digital_demodulate(Types.ModulationScheme ms, Complex[] modulated, int length, int *output);
internal static extern void digital_modulate(Types.ModulationScheme ms, int[] symbols, int length, Complex *output);
internal static extern int digital_get_max_symbol(Types.ModulationScheme ms);
public Modem(int modem_scheme) { this._scheme = (Types.ModulationScheme)modem_scheme; this._constellation_size = libliquid.digital_get_max_symbol(this._scheme); }
public static int GetBitsPerSymbol(Types.ModulationScheme scheme) { return((int)(Math.Log(libliquid.digital_get_max_symbol(scheme)) / Math.Log(2))); }
public static int GetConstellationSize(Types.ModulationScheme scheme) { return(libliquid.digital_get_max_symbol(scheme)); }