forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added the primary/rentramist slot type to the audio callback (zephyrp…
- Loading branch information
1 parent
5444bac
commit c608b2f
Showing
2 changed files
with
15 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,15 @@ | ||
#ifndef ULL_MFI_AUDIO_INTERNAL_H | ||
#define ULL_MFI_AUDIO_INTERNAL_H | ||
|
||
typedef enum { | ||
MFI_AUDIO_SLOT_TYPE_PRIMARY, | ||
MFI_AUDIO_SLOT_TYPE_RETRANSMIT | ||
} mfi_audio_slot_type_t; | ||
|
||
// *** Whisper added for MFI. Register a callback for when audio packets are | ||
// received so the BLE stack knows where to pass them | ||
typedef void (*mfi_audio_recv_cb_fn)(const uint8_t *data, uint8_t data_len); | ||
typedef void (*mfi_audio_recv_cb_fn)(const uint8_t *data, uint8_t data_len, | ||
mfi_audio_slot_type_t slot_type); | ||
void ull_mfi_audio_register_cb(mfi_audio_recv_cb_fn mfi_audio_cb); | ||
|
||
#endif // ULL_MFI_AUDIO_INTERNAL_H |