From bb639c42d04457fe37f3cbd9a407296b2047cb45 Mon Sep 17 00:00:00 2001 From: Aditya Naik Date: Fri, 15 May 2020 14:59:07 -0400 Subject: This CL adds bookkeeping structures for routing, including the routing buffer, routing index buffer, and the routing table. It also adds the main routing function, slave-side implementation of receiving subscribed data and master implementation of managed data in the routing buffer. This CL supports only routing data (branch 1) and only honors subscriptions based on module ID. CL also adds minor changes to the dataflow process, including inserting data into the routing buffer and incrementing routing pointer. CL also adds a configuration macro MASTER_I2C_BUS_INTERVAL in config.h to delay master I2C operations in order to minimize I2C timeout errors on the bus. Author: Aditya Naik Reviewers: None Task list: ef9e3917106842259ce2c32f40d7e9be 2f0c741a66db4b79904e295356b657cd --- src/dataflow.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/dataflow.h') diff --git a/src/dataflow.h b/src/dataflow.h index 700bbdc..a2217ca 100644 --- a/src/dataflow.h +++ b/src/dataflow.h @@ -14,7 +14,7 @@ * | DF_RX_DOC | 1 | Sent m2s_SOR; ready to receive s2m_DOC | Receive s2m_DOC | DF_CTS | * | DF_CTS | 2 | Received m2s_SOR; ready to send DF_CTS | Send m2s_CTS | DF_RX_DATA or DF_RX_CMD | * | DF_RX_DATA | 3 | Sent m2s_CTS; receive s2m_data | Receive s2m_data | DF_SUCCESS | - * | DF_RX_CMD | 4 | sent m2s_CTS receive s2m_command | Receive s2m_command | DF_SUCCESS | + * | DF_RX_CMD | 4 | sent m2s_CTS receive s2m_command | Receive s2m_command | DF_SUCCESS | * |------------+-----+----------------------------------------+---------------------+-------------------------| * * @@ -27,7 +27,8 @@ typedef enum dataflow_status { DF_RX_DATA = 3, DF_RX_CMD = 4, DF_SUCCESS = 5, - DF_FAIL = 6 + DF_FAIL = 6, + DF_LEN_TX = 7 } dataflow_status_t; typedef enum SOR_codes { -- cgit v1.2.3