seos_native_peripheral.h 763 B

123456789101112131415161718192021222324252627282930
  1. #pragma once
  2. #include <bt/bt_service/bt.h>
  3. #include "seos_common.h"
  4. #include "seos_profile.h"
  5. typedef struct {
  6. Seos* seos;
  7. Bt* bt;
  8. FuriHalBleProfileBase* ble_profile;
  9. uint8_t event_buffer[128];
  10. SeosPhase phase;
  11. AuthParameters params;
  12. SecureMessaging* secure_messaging;
  13. SeosCredential* credential;
  14. FuriMessageQueue* messages;
  15. FuriMutex* mq_mutex;
  16. FuriThread* thread;
  17. } SeosNativePeripheral;
  18. SeosNativePeripheral* seos_native_peripheral_alloc(Seos* seos);
  19. void seos_native_peripheral_free(SeosNativePeripheral* seos_native_peripheral);
  20. void seos_native_peripheral_start(SeosNativePeripheral* seos_native_peripheral, FlowMode mode);
  21. void seos_native_peripheral_stop(SeosNativePeripheral* seos_native_peripheral);