forked from PetruSoroaga/RubyFPV
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3382a9c
commit 75fa67e
Showing
12 changed files
with
2,392 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#pragma once | ||
#include "../base/base.h" | ||
#include "../base/shared_mem.h" | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
void radio_stats_reset(shared_mem_radio_stats* pSMRS, int graphRefreshInterval); | ||
void radio_stats_log_info(shared_mem_radio_stats* pSMRS); | ||
int radio_stats_periodic_update(shared_mem_radio_stats* pSMRS, u32 timeNow); | ||
int radio_stats_update_on_packet_received(shared_mem_radio_stats* pSMRS, u32 timeNow, int iInterfaceIndex, u8* pPacketBuffer, int iPacketLength, int iCRCOk); | ||
|
||
void radio_stats_set_radio_link_rt_delay(shared_mem_radio_stats* pSMRS, int iRadioLink, u32 delay); | ||
void radio_stats_set_commands_rt_delay(shared_mem_radio_stats* pSMRS, u32 delay); | ||
void radio_stats_set_tx_card_for_radio_link(shared_mem_radio_stats* pSMRS, int iRadioLink, int iTxCard); | ||
void radio_stats_set_card_current_frequency(shared_mem_radio_stats* pSMRS, int iRadioInterface, int freq); | ||
|
||
|
||
void radio_stats_update_on_packet_sent_on_radio_interface(shared_mem_radio_stats* pSMRS, u32 timeNow, int interfaceIndex, int iLinkIndex, int iStreamIndex, int iPacketLength, int iChainedCount); | ||
void radio_stats_update_on_packet_sent_on_radio_link(shared_mem_radio_stats* pSMRS, u32 timeNow, int interfaceIndex, int iLinkIndex, int iStreamIndex, int iPacketLength, int iChainedCount); | ||
void radio_stats_update_on_packet_sent_for_radio_stream(shared_mem_radio_stats* pSMRS, u32 timeNow, int iStreamIndex, int iPacketLength); | ||
|
||
void radio_controller_links_stats_reset(t_packet_data_controller_link_stats* pControllerStats); | ||
void radio_controller_links_stats_periodic_update(t_packet_data_controller_link_stats* pControllerStats, u32 timeNow); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif |
Oops, something went wrong.