SmartSnippets DA1459x SDK
dgtl.h
Go to the documentation of this file.
1 
44 #ifndef DGTL_H_
45 #define DGTL_H_
46 
47 #include <stdbool.h>
48 #include <stdint.h>
49 #include "dgtl_msg.h"
50 
51 #ifdef __cplusplus
52 extern "C" {
53 #endif
54 
58 typedef enum {
59  DGTL_QUEUE_HCI,
60  DGTL_QUEUE_APP,
61  DGTL_QUEUE_LOG,
62 } dgtl_queue_t;
63 
72 typedef void (*dgtl_sent_cb_t)(void *user_data);
73 
87 void dgtl_app_specific_hci_cb(const dgtl_msg_t *msg);
88 
96 void dgtl_init(void);
97 
112 void dgtl_register(dgtl_queue_t queue, uint32_t notif);
113 
132 bool dgtl_send_ex(dgtl_msg_t *msg, dgtl_sent_cb_t cb, void *user_data);
133 
146 void dgtl_send(dgtl_msg_t *msg);
147 
162 dgtl_msg_t *dgtl_receive(dgtl_queue_t queue);
163 
164 
173 void dgtl_wkup_handler(void);
174 
183 void dgtl_close(void);
184 
185 #ifdef __cplusplus
186 }
187 #endif
188 
189 #endif /* DGTL_H_ */
190 
dgtl_register
void dgtl_register(dgtl_queue_t queue, uint32_t notif)
Register current task for given queue.
dgtl_send_ex
bool dgtl_send_ex(dgtl_msg_t *msg, dgtl_sent_cb_t cb, void *user_data)
Send message to the DGTL interface.
dgtl_sent_cb_t
void(* dgtl_sent_cb_t)(void *user_data)
Callback called once tx is completed.
Definition: dgtl.h:72
dgtl_msg.h
Declarations for DGTL Messages API.
dgtl_init
void dgtl_init(void)
dgtl_send
void dgtl_send(dgtl_msg_t *msg)
Send message to the DGTL interface.
dgtl_app_specific_hci_cb
void dgtl_app_specific_hci_cb(const dgtl_msg_t *msg)
dgtl_close
void dgtl_close(void)
Send signal to the DGTL task for closing transport.
dgtl_queue_t
dgtl_queue_t
DGTL queue type.
Definition: dgtl.h:58
dgtl_receive
dgtl_msg_t * dgtl_receive(dgtl_queue_t queue)
Receive message from the DGTL interface.
dgtl_wkup_handler
void dgtl_wkup_handler(void)
Wake up handler for dgtl task.
msg
Structure for messages with id, type, data.
Definition: msg_queues.h:144