publisher.h 548 B

123456789101112131415161718192021222324252627
  1. /* Bluetooth: Mesh Generic OnOff, Generic Level, Lighting & Vendor Models
  2. *
  3. * Copyright (c) 2018 Vikrant More
  4. *
  5. * SPDX-License-Identifier: Apache-2.0
  6. */
  7. #ifndef _PUBLISHER_H
  8. #define _PUBLISHER_H
  9. /* Others */
  10. #define LEVEL_S0 -32768
  11. #define LEVEL_S25 -16384
  12. #define LEVEL_S50 0
  13. #define LEVEL_S75 16384
  14. #define LEVEL_S100 32767
  15. #define LEVEL_U0 0
  16. #define LEVEL_U25 16384
  17. #define LEVEL_U50 32768
  18. #define LEVEL_U75 49152
  19. #define LEVEL_U100 65535
  20. void randomize_publishers_TID(void);
  21. void publish(struct ble_npl_event *work);
  22. #endif