generated from ut-issl/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
88 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 0 additions & 34 deletions
34
Examples/minimum_user/src/src_user/IfWrapper/Sils/ccsds_sils_sci_if.cpp
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
Examples/minimum_user/src/src_user/IfWrapper/Sils/ccsds_sils_sci_if.hpp
This file was deleted.
Oops, something went wrong.
36 changes: 36 additions & 0 deletions
36
Examples/minimum_user/src/src_user/IfWrapper/Sils/sils_sci_ccsds_if.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#pragma section REPRO | ||
/** | ||
* @file | ||
* @brief sils_sci_ccsds_if | ||
* @details WINGS TMTC IFとCCSDSのTransfer FrameをSCI COMでやりとりするIF | ||
* Windows上でcom0comを使うことを想定 | ||
* SCIComPort classは基本的にEQU ZEUSのコードを流用 | ||
*/ | ||
|
||
#include "sils_sci_ccsds_if.hpp" | ||
|
||
|
||
// 最初だけ初期化して、プログラム終了時にポートを閉じるようにしたい | ||
#ifdef _WIN32 | ||
static SCIComPortCcsds SILS_SCI_CCSDS_IF_sci_com_(11); | ||
#else | ||
static SCIComPortCcsds SILS_SCI_CCSDS_IF_sci_com_(1); | ||
#endif | ||
|
||
int SILS_SCI_CCSDS_IF_init(void) | ||
{ | ||
return 0; | ||
} | ||
|
||
int SILS_SCI_CCSDS_IF_TX(unsigned char* data_v, int count) | ||
{ | ||
SILS_SCI_CCSDS_IF_sci_com_.Send(data_v, 0, count); | ||
return 0; | ||
} | ||
|
||
int SILS_SCI_CCSDS_IF_RX(unsigned char* data_v, int count) | ||
{ | ||
return SILS_SCI_CCSDS_IF_sci_com_.Receive(data_v, 0, count); | ||
} | ||
|
||
#pragma section |
25 changes: 25 additions & 0 deletions
25
Examples/minimum_user/src/src_user/IfWrapper/Sils/sils_sci_ccsds_if.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/** | ||
* @file | ||
* @brief sils_sci_ccsds_if | ||
* @details WINGS TMTC IFとCCSDSのTransfer FrameをSCI COMでやりとりするIF | ||
* Windows上でcom0comを使うことを想定 | ||
* SCIComPort classは基本的にEQU ZEUSのコードを流用 | ||
*/ | ||
#ifndef SILS_SCI_CCSDS_IF_HPP_ | ||
#define SILS_SCI_CCSDS_IF_HPP_ | ||
|
||
#include <stddef.h> | ||
#include "sils_sci_if.hpp" | ||
|
||
class SCIComPortCcsds : public SCIComPort | ||
{ | ||
public: | ||
SCIComPortCcsds(int port) : SCIComPort(port) {}; | ||
~SCIComPortCcsds(void) {}; | ||
}; | ||
|
||
int SILS_SCI_CCSDS_IF_init(); | ||
int SILS_SCI_CCSDS_IF_TX(unsigned char* data_v, int count); | ||
int SILS_SCI_CCSDS_IF_RX(unsigned char* data_v, int count); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
..._user/IfWrapper/Sils/uart_sils_sci_if.hpp → ..._user/IfWrapper/Sils/sils_sci_uart_if.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters