summaryrefslogtreecommitdiff
path: root/vw-bap.h
diff options
context:
space:
mode:
Diffstat (limited to 'vw-bap.h')
-rw-r--r--vw-bap.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/vw-bap.h b/vw-bap.h
index 30f59c6..87a2fc3 100644
--- a/vw-bap.h
+++ b/vw-bap.h
@@ -58,7 +58,11 @@ struct BAP_RXer {
struct BAP_TXer {
+ /* Temporary storage for frames not yet fully sent */
+ struct BAP_Frame *slot[4];
+ /* How many bytes have we already sent on each channel? */
+ BAP_FrameLen slot_done[4];
};
@@ -69,6 +73,8 @@ struct BAP_Frame* vw_bap_frame_alloc(void);
int vw_bap_frame_is_valid(struct BAP_Frame *bap_frame);
+struct BAP_Frame* vw_bap_frame_clone(struct BAP_Frame *bap_frame);
+
void vw_bap_frame_dump(struct BAP_Frame *bap_frame);
@@ -79,6 +85,7 @@ void vw_bap_rxer_free(struct BAP_RXer *bap);
/* BAP transmission */
+int vw_bap_txer_queue(struct BAP_TXer* bap, struct BAP_Frame *bap_frame, struct can_frame *frame);
struct BAP_TXer* vw_bap_txer_alloc();
void vw_bap_txer_free(struct BAP_TXer *bap);