auto_bus/include/bus_io.h

50 lines
808 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_BUS_IO_H
#define AUTO_PILOT_BUS_BUS_IO_H
2022-05-06 11:55:30 +08:00
#include "rail.h"
#include "query.h"
enum read_state{
/**
*
*/
2022-05-13 11:41:00 +08:00
io_clock = 0,
2022-05-06 11:55:30 +08:00
/**
*
*/
2022-05-13 11:41:00 +08:00
io_reading,
2022-05-06 11:55:30 +08:00
/**
*
*/
end
};
/**
*
*/
typedef enum read_state read_state_t;
/**
* 使
* @return
*/
rail_node_t* ReadConfigFile();
/**
*
* @param inputString
2022-05-06 11:55:30 +08:00
* @return
*/
read_state_t ReadInput(char* inputString);
2022-05-06 11:55:30 +08:00
/**
*
* @param rails
*/
void PrintState();
2022-05-06 11:55:30 +08:00
#endif //AUTO_PILOT_BUS_BUS_IO_H