61 lines
1.2 KiB
C++
61 lines
1.2 KiB
C++
/*!\file
|
|
* \brief \todo Îïèñàíèå ôàéëà.
|
|
*/
|
|
/*
|
|
* SciPeripheralTest.h
|
|
*
|
|
* Created on: 17 èþí. 2019 ã.
|
|
* Author: titov
|
|
*/
|
|
|
|
#ifndef SOURCE_APPLICATION_TEST_SCIPERIPHERALTEST_H_
|
|
#define SOURCE_APPLICATION_TEST_SCIPERIPHERALTEST_H_
|
|
|
|
#include <application/ISetupStep.hh>
|
|
#include "../../peripheral/IUartPort.hh"
|
|
|
|
namespace application { namespace tests {
|
|
|
|
//struct SciPeripheralTest : public ISetupStep {
|
|
//
|
|
// peripheral::IUartPort * test_uart = nullptr;
|
|
//
|
|
// enum State {
|
|
// Send,
|
|
// WaitDataSent,
|
|
// Receive
|
|
// } state;
|
|
//
|
|
// struct Case {
|
|
// const char * data;
|
|
// std::size_t size;
|
|
// };
|
|
//
|
|
// static const std::size_t quantity_cases = 16;
|
|
// std::size_t step;
|
|
// std::size_t pass;
|
|
// Case cases[quantity_cases];
|
|
//
|
|
// static const std::size_t test_size = 64;
|
|
// char test_buff[test_size];
|
|
//
|
|
// bool input( Environment & env );
|
|
// bool prepare();
|
|
// void build( Environment & env );
|
|
//
|
|
// struct Links {
|
|
// uint16_t uart_id;
|
|
// };
|
|
//
|
|
// const Links & links;
|
|
//
|
|
// const configuration::ProcessConfig & proc;
|
|
//
|
|
// SciPeripheralTest( const Links & links, const configuration::ProcessConfig & proc );
|
|
//
|
|
//};
|
|
|
|
}}
|
|
|
|
#endif /* SOURCE_APPLICATION_TEST_SCIPERIPHERALTEST_H_ */
|