op_tbl_modulation_get()
Abstract
Obtains a modulation table, given the modulation table name.
Syntax
op_tbl_modulation_get (mod_name)
| Argument | Type | Description |
|---|---|---|
mod_name |
const char * |
modulation table name |
Return Type
Modulation_Handle
Modulation table, or OPC_NIL if the table is not found.
Example
/* Get a handle to the modulation table. */
/* Choose the modulation based on the data */
/* rate configured for data transmissions. */
if (data_rate == 1000000)
modulation_table = op_tbl_modulation_get ("bpsk");
else if (data_rate == 2000000)
modulation_table = op_tbl_modulation_get ("qpsk");
else
modulation_table = op_tbl_modulation_get ("my_cck");
Details
None.
Purpose
Provides a way to get a reference to a modulation table. This reference can then be used with op_tbl_mod_ber().
Errors
- Recoverable Error: No modulation table name provided.
Reference
- Use the KP op_tbl_mod_ber() to look up bit-error rate as a function of signal-to-noise ratio