Skip to content

Instantly share code, notes, and snippets.

@mroger
Created August 23, 2014 13:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mroger/3e981d6fac142dc086e0 to your computer and use it in GitHub Desktop.
Save mroger/3e981d6fac142dc086e0 to your computer and use it in GitHub Desktop.
Setting search stop levels.
void TEA5767N::setSearchLowStopLevel() {
transmission_data[THIRD_DATA] &= 0b10011111;
transmission_data[THIRD_DATA] |= (LOW_STOP_LEVEL << 5);
}
void TEA5767N::setSearchMidStopLevel() {
transmission_data[THIRD_DATA] &= 0b10011111;
transmission_data[THIRD_DATA] |= (MID_STOP_LEVEL << 5);
}
void TEA5767N::setSearchHighStopLevel() {
transmission_data[THIRD_DATA] &= 0b10011111;
transmission_data[THIRD_DATA] |= (HIGH_STOP_LEVEL << 5);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment