dcf77.h 609 B

1234567891011121314151617181920212223
  1. #pragma once
  2. #include <datetime/datetime.h>
  3. #include <furi.h>
  4. /**
  5. * Set the current time and convert it into a dcf77 signal
  6. * @param datetime The time to set
  7. * @param is_dst If daylight saving time is active
  8. */
  9. void set_dcf77_time(DateTime* datetime, bool is_dst);
  10. /**
  11. * Get the signal bit for a second
  12. * @param sec The second to get the bit for
  13. */
  14. bool get_dcf77_bit(int sec);
  15. /**
  16. * Get the visual signal string to display in UI for a second (cropped to the last 25 bits because more cannot be displayed in one line)
  17. * @param sec The second to get the bit for
  18. */
  19. char* get_dcf77_data(int sec);