MCPcopy Create free account
hub / github.com/LowPowerLab/RFM69 / getUsForResolution

Function getUsForResolution

RFM69.cpp:1090–1105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1088}
1089
1090static uint32_t getUsForResolution(uint8_t resolution) {
1091 switch (resolution) {
1092 case RF_LISTEN1_RESOL_RX_64:
1093 case RF_LISTEN1_RESOL_IDLE_64:
1094 return 64;
1095 case RF_LISTEN1_RESOL_RX_4100:
1096 case RF_LISTEN1_RESOL_IDLE_4100:
1097 return 4100;
1098 case RF_LISTEN1_RESOL_RX_262000:
1099 case RF_LISTEN1_RESOL_IDLE_262000:
1100 return 262000;
1101 default:
1102 // Whoops
1103 return 0;
1104 }
1105}
1106
1107static uint32_t getCoefForResolution(uint8_t resolution, uint32_t duration) {
1108 uint32_t resolDuration = getUsForResolution(resolution);

Callers 3

getCoefForResolutionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected