DR-U-USB/DR-E-USB RLMXX0CLASS
GT20171121-1
|
Class members used to GET/SET usual used parameter. More...
Functions | |
quint8 | RLMXXXCRC::GetPower (quint8 &Power) |
Function determinate the current power level of the amplifier. More... | |
quint8 | RLMXXXCRC::SetPower (const quint8 Power) |
Function set the power level of the amplifier. More... | |
quint8 | RLMXXXCRC::GetFrequency (quint8 &FreMode, quint8 &FreBase, QByteArray &BaseFre, quint8 &ChannNum, quint8 &ChannSpc, quint8 &FreHop) |
Function determinate the current frequency setting of the module. More... | |
quint8 | RLMXXXCRC::SetFrequency (const quint8 FreMode, const quint8 FreBase, const QByteArray &BaseFre, const quint8 ChannNum, const quint8 ChannSpc, const quint8 FreHop) |
Function set frequency parameter of the module. More... | |
quint8 | RLMXXXCRC::GetCommand (quint8 &Cmd) |
Function determinate the current command processed from the module. More... | |
quint8 | RLMXXXCRC::GetStatus (quint8 &Status) |
Function determinate current work status of module. More... | |
Class members used to GET/SET usual used parameter.
This functions used to determinate: Operation status of the module, Frequency, PA power level, command in process and to manipulate: Frequency and PA power.
quint8 RLMXXXCRC::GetCommand | ( | quint8 & | Cmd | ) |
Function determinate the current command processed from the module.
Its called by application to check program status.
[out] | Cmd | Command identifier returned from the module. |
quint8 RLMXXXCRC::GetFrequency | ( | quint8 & | FreMode, |
quint8 & | FreBase, | ||
QByteArray & | BaseFre, | ||
quint8 & | ChannNum, | ||
quint8 & | ChannSpc, | ||
quint8 & | FreHop | ||
) |
Function determinate the current frequency setting of the module.
Its called by application and returns:
Frequency Mode ( 1 byte )
0: Simple mode – register effective: R_FREBASE, R_BF_H, R_BF_L, R_BF_D, R_CN
1: Advanced mode – register effective: R_FREBASE, R_BF_H, R_BF_L, R_BF_D, R_CN, R_SPC, R_FREHOP
Frequency Base ( 1 byte ) 0: 50kHz 1: 125kHz
Base Frequency ( 2 byte ) 860-960
Channel Number ( 1 byte ) 1-255
Channel Space ( 1 byte ) 1-255
Frequency hopping ( 1 byte )
0: random frequency hopping.
1: ascending order of frequency hopping.
2: descending order of frequency hopping.
Other: random frequency hopping.
[out] | FreMode | [0-1] |
[out] | FreBase | [0-1] |
[out] | BaseFre | 860~960 |
[out] | ChannNum | [1-255] |
[out] | ChannSpc | [1-255] |
[out] | FreHop | [0-2] |
quint8 RLMXXXCRC::GetPower | ( | quint8 & | Power | ) |
Function determinate the current power level of the amplifier.
Its called by application.
[out] | Power | current amplifier power setting. |
quint8 RLMXXXCRC::GetStatus | ( | quint8 & | Status | ) |
Function determinate current work status of module.
Its called by application to check status of a circular command e.g. Inventory.
[out] | Status | Command byte returned from the module within the response. |
quint8 RLMXXXCRC::SetFrequency | ( | const quint8 | FreMode, |
const quint8 | FreBase, | ||
const QByteArray & | BaseFre, | ||
const quint8 | ChannNum, | ||
const quint8 | ChannSpc, | ||
const quint8 | FreHop | ||
) |
Function set frequency parameter of the module.
Its called by application.
FreMode ( 1 byte )\n
FreBase ( 1 byte )
BaseFre ( 2 byte ) :
ChannNum ( 1 byte )
ChannSpc ( 1 byte )
Frequency hopping ( 1 byte )
Calculate the Base Frequency:
BaseFre = (((Frequency[Mhz] << 5) | KhzFreBaseFactor ) & 0x7fff)
BaseFre = (( 922 << 5 ) | 5 ) & 0x7fff)
FreBase = 1 -> 125Khz
BF = 922Mhz + 5(KhzFreBaseFactor) x 125Khz(FreBase) = 922.625Mhz
ChannelSeparation = ( ChanSpc * FreBase ) - FreBase with ChanSpc = 2, FreBase = 1 -> 125khz ChannelSeparation = (2 * 125Khz) - 125kHz = 125Khz
[in] | FreMode | [0-4] |
[in] | FreBase | [0-1] |
[in] | BaseFre | 840~960 encnoded |
[in] | ChannNum | [1-254] |
[in] | ChannSpc | [1-254] |
[in] | FreHop | [0-2] |
Implementation example
quint8 RLMXXXCRC::SetPower | ( | const quint8 | Power | ) |
Function set the power level of the amplifier.
Its called by application to adjust the RFID read/write range.
[in] | Power | Amplifier power level [10-30] |