auto_bus/include/io.h

53 lines
1020 B
C
Raw Normal View History

2022-05-06 11:55:30 +08:00
//
// Created by ricardo on 2022/5/6.
//
#ifndef AUTO_PILOT_BUS_IO_H
#define AUTO_PILOT_BUS_IO_H
#include "rail.h"
#include "query.h"
enum read_state{
/**
*
*/
clock = 0,
/**
*
*/
reading,
/**
*
*/
end
};
/**
*
*/
typedef enum read_state read_state_t;
/**
* 使
* @return
*/
rail_node_t* ReadConfigFile();
/**
*
* @param up_queries
* @param down_queries
* @return
*/
read_state_t ReadInput(up_bus_t* up_queries, down_bus_t* down_queries);
/**
*
* @param up_queries
* @param down_queries
* @param rails
*/
void PrintState(up_bus_t* up_queries, down_bus_t* down_queries, rail_node_t* rails);
#endif //AUTO_PILOT_BUS_IO_H