1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-26 03:51:35 +01:00

Added some unit tests for RadioTap.

This commit is contained in:
Matias Fontanini
2012-10-17 18:44:46 -03:00
parent a0f5d26987
commit 53efc67f6f
5 changed files with 127 additions and 4 deletions

View File

@@ -162,6 +162,13 @@ namespace Tins {
* \return The channel's mhz representation.
*/
uint16_t channel_to_mhz(uint16_t channel);
/**
* \brief Converts mhz units to the appropriate channel number.
* \param channel The mhz units to be converted.
* \return The channel number.
*/
uint16_t mhz_to_channel(uint16_t mhz);
/** \brief Does the 16 bits sum of all 2 bytes elements between start and end.
*