APP4 S5

Dependencies:   mbed-rtos mbed

Committer:
Cheroukee
Date:
Mon Oct 16 00:27:07 2017 +0000
Revision:
11:1d277e7e272d
Parent:
10:c4629b6c42f8
Child:
12:e21604b50719
Queueing works great but some error makes the output stop updating buffer content correctly after a whiel

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Cheroukee 10:c4629b6c42f8 1 #pragma once
Cheroukee 10:c4629b6c42f8 2
Cheroukee 10:c4629b6c42f8 3 #include "radio.h"
Cheroukee 10:c4629b6c42f8 4 // Taille des buffers de reception/envoi (maximums de messages)
Cheroukee 10:c4629b6c42f8 5 #define MESSAGE_BUFFER_SIZE 16
Cheroukee 10:c4629b6c42f8 6
Cheroukee 10:c4629b6c42f8 7 // Utilise pour aller chercher une pointeur vers un message a remplir pour l'envoi
Cheroukee 10:c4629b6c42f8 8 radio_message_t* get_new_out_message();
Cheroukee 10:c4629b6c42f8 9 // Inique que le message courant est pret a etre envouye
Cheroukee 10:c4629b6c42f8 10 bool new_out_message_ready();
Cheroukee 10:c4629b6c42f8 11
Cheroukee 10:c4629b6c42f8 12 // Utilise pour aller chercher le plus vieux message en sortie
Cheroukee 10:c4629b6c42f8 13 radio_message_t* get_last_out_message();
Cheroukee 10:c4629b6c42f8 14 // Indique que le message a ete envoye
Cheroukee 10:c4629b6c42f8 15 bool last_out_message_read();
Cheroukee 10:c4629b6c42f8 16
Cheroukee 10:c4629b6c42f8 17 // Utilise pour aller recuperer un nouveau message a remplir pour la reception
Cheroukee 10:c4629b6c42f8 18 radio_message_t* get_new_in_message();
Cheroukee 10:c4629b6c42f8 19 // Indique qu'un nouveau message est pret en entree
Cheroukee 10:c4629b6c42f8 20 bool new_in_message_ready();
Cheroukee 10:c4629b6c42f8 21
Cheroukee 10:c4629b6c42f8 22 // Utilise pour aller chercher le dernier message pret
Cheroukee 10:c4629b6c42f8 23 radio_message_t* get_last_in_message();
Cheroukee 10:c4629b6c42f8 24 // Indique que le dernier message a bien ete lu
Cheroukee 11:1d277e7e272d 25 bool last_in_message_read();
Cheroukee 11:1d277e7e272d 26