Add a small piece of documentation describing transmission operations
/******************************************************************************
- * @file sys_msg
- * @brief protocol system message management.
+ * @file transmission
+ * @brief transmission management.
* @author Luos
* @version 0.0.0
******************************************************************************/
+
+/******************************* Description of the TX process ************************************************************************
+ *
+ * | Luos_send
+ * | |
+ * | |
+ * TX_status=NOK +----v-----+ TX_status=DISABLE +-----v-----+
+ * +----------| Timeout |-----------+ | Msg | +-----------+ +-----------+
+ * | +----------+ | |Preparation| | Collision | x4 | Prepare | ^
+ * | |TX_status=OK | +-----------+ | Reception |---->| ACK RX |------+
+ * | | | | +-----------+ +-----------+
+ * +-----------+ +----v-----+ +----v-----+ +------v----+ +-----v-----+ |
+ * ^ | TX_status | | Delay | | rm | | TX_status | | Tx | ^ |Collision
+ * +----| =DISABLE |<--| compute | | TX task | | =DISABLE | |Allocation |-----+ |
+ * +-----------+ +----------+ +----------+ +-----------+ +-----------+tx_lock +-----v-----+
+ * | | | | | Stop TX |
+ * | | | +---------+-------+ +-----------+
+ * |retry=10 +-------------+-------->|Transmit | | |
+ * | | |Process | | +-----v-----+
+ * +----v-----+ | | +-----v-----+ | | Pass data |
+ * | Exclude | | | | Get | | ^ | to RX |
+ * |container |---------+ | | TX_tasks |-+---+ +-----------+
+ * +----------+ | +-----------+ No task |
+ * | | | +-----v-----+
+ * | +-----v-----+ | | TX_status | ^
+ * | |Send + set | | | =NOK |------+
+ * | | TX_status | | +-----------+
+ * | +-----------+ |
+ * | | |
+ * +----------+ | +-----v-----+ |
+ * +----------+ |TX_status | ^ | | Enable | | ^
+ * --->| RX[1] |--->| =DISABLE |-----+ | | Collision |-+---+
+ * +----------+ +----------+ | +-----------+ |
+ * +-----------------+
+ *
+ ************************************************************************************************************************************/
+
#include <transmission.h>
#include "luos_hal.h"
