Oms_FHSS_Channel_Match_Determine()
Abstract
This function will be called by the channel match pipeline stage to determine if the current interfering packet from a transmitter is in the same channel as the receiver.
Syntax
Oms_FHSS_Channel_Match_Determine (pkptr, tx_fhss_id, rx_fhss_id, tx_freq, tx_bw, tx_mod, tx_code, tx_drate, rx_freq, rx_bw, rx_mod, rx_code, rx_drate)
| Argument | Type | Description |
|---|---|---|
pkptr |
Packet* |
Packet pointer |
tx_fhss_id |
double |
Tx unique id |
rx_fhss_id |
double |
Rx unique id |
tx_freq |
double |
Tx Frequency |
tx_bw |
double |
Tx Bandwidth |
tx_mod |
Modulation_Handle |
Tx Modulation Handle |
tx_code |
double |
Tx spreading code |
tx_drate |
double |
Tx data rate |
rx_freq |
double |
Rx Frequency |
rx_bw |
double |
Rx Bandwidth |
Modulation_Handle |
Modulation_Handle |
Rx Modulation Handle |
rx_code |
double |
Rx spreading code |
rx_drate |
double |
Rx data rate |
Return Type
OmsT_FHSS_Channel_Match_Type
Details
Behavior: This function determines if channel match should be performed and the corresponding parameters to use. The following behavior is executed:
- If the tx and rx devices do not use FHSS then default to standard channel match
- If the rx uses “abstract” FHSS then calculate processing gain and store in a custom TDA. For channel match default to the standard channel match.
- For all other cases, the current channel is determined based on the FHSS hop sequence. If the FHSS module is not enabled, the default frequency values are used.
Output: true, false or not supported. If “not supported” then the behavior will default to the standard channel match functionality. Also, the FHSS package will set the FHSS_CHAN_OVERLAP_TDA if a valid channel match is performed and also set the FHSS_PROCESSING_GAIN_TDA if the abstract model is used.