Skip to content

Commit 64bd625

Browse files
joehowarth17aminya
authored andcommitted
Added function to get the rx queue from can interface
1 parent c9c177e commit 64bd625

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

include/csp/interfaces/csp_if_can.h

+2
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ struct csp_can_config {
5151
*/
5252
int csp_can_init(uint8_t mode, struct csp_can_config *conf);
5353

54+
csp_queue_handle_t * get_csp_can_queue();
55+
5456
#ifdef __cplusplus
5557
} /* extern "C" */
5658
#endif

src/interfaces/csp_if_can.c

+6
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,12 @@ static csp_thread_handle_t csp_can_rx_task_h;
114114
/* RX frame queue */
115115
static csp_queue_handle_t csp_can_rx_queue;
116116

117+
118+
csp_queue_handle_t get_csp_can_queue(){
119+
120+
return csp_can_rx_queue;
121+
}
122+
117123
/* Identification number */
118124
static int csp_can_id_init(void)
119125
{

0 commit comments

Comments
 (0)