Chirp C SDK  3.3.1
Use Chirp to send data over sound from your C application.
chirp_sdk_events.h
Go to the documentation of this file.
1 
17 #ifndef CHIRP_SDK_EVENTS_H
18 #define CHIRP_SDK_EVENTS_H
19 
20 #include <stdint.h>
21 #include <stddef.h>
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
30 typedef enum {
37 
56 typedef void (*chirp_sdk_callback_t)(void *ptr, uint8_t *bytes, size_t length, uint8_t channel);
57 
69 typedef void (*chirp_sdk_state_callback_t)(void *ptr, chirp_sdk_state_t old_state, chirp_sdk_state_t new_state);
70 
76 typedef struct {
83 
84 #ifdef __cplusplus
85 }
86 #endif
87 
88 #endif /* !CHIRP_SDK_EVENTS_H */
chirp_sdk_state_t
chirp_sdk_state_t
Definition: chirp_sdk_events.h:30
CHIRP_SDK_STATE_RUNNING
The audio processing is running.
Definition: chirp_sdk_events.h:33
chirp_sdk_callback_set_t::on_receiving
chirp_sdk_callback_t on_receiving
Triggered when the SDK starts receiving some data.
Definition: chirp_sdk_events.h:80
CHIRP_SDK_STATE_SENDING
The SDK is sending data.
Definition: chirp_sdk_events.h:34
chirp_sdk_callback_set_t
Definition: chirp_sdk_events.h:76
CHIRP_SDK_STATE_NOT_CREATED
The audio processing has not been initialised yet.
Definition: chirp_sdk_events.h:31
chirp_sdk_callback_set_t::on_received
chirp_sdk_callback_t on_received
Triggered when the SDK has received the data.
Definition: chirp_sdk_events.h:81
chirp_sdk_callback_set_t::on_state_changed
chirp_sdk_state_callback_t on_state_changed
Triggered when the SDK's state is changing.
Definition: chirp_sdk_events.h:77
chirp_sdk_state_callback_t
void(* chirp_sdk_state_callback_t)(void *ptr, chirp_sdk_state_t old_state, chirp_sdk_state_t new_state)
Definition: chirp_sdk_events.h:69
chirp_sdk_callback_set_t::on_sent
chirp_sdk_callback_t on_sent
Triggered when the SDK has sent the data.
Definition: chirp_sdk_events.h:79
chirp_sdk_callback_t
void(* chirp_sdk_callback_t)(void *ptr, uint8_t *bytes, size_t length, uint8_t channel)
Definition: chirp_sdk_events.h:56
CHIRP_SDK_STATE_RECEIVING
The SDK is receiving data.
Definition: chirp_sdk_events.h:35
chirp_sdk_callback_set_t::on_sending
chirp_sdk_callback_t on_sending
Triggered when the SDK starts sending some data.
Definition: chirp_sdk_events.h:78
CHIRP_SDK_STATE_STOPPED
The SDK is not processing audio.
Definition: chirp_sdk_events.h:32