Surasak Nasuriwong / RMS_UART
Embed: (wiki syntax)

« Back to documentation index

RMS_UART.cpp File Reference

RMS_UART.cpp File Reference

Command for Mini-RMS <> RMS via UART. More...

Go to the source code of this file.

Functions

void Init_SerialDevice ()
 Initials bsp and interrupt of serial communication.
void RxMsgInterruptCallback ()
 Intertupt callback function.
void DoTheContent ()
 Fill serial data as in contents buffer.
void DoTheMsgCmd ()
 Fill serial data as in command buffer.
void CheckContentMsg ()
 Checking and processing contents data.
void CheckCmdType ()
 Checking and processing command type.
void CheckReadEditCmd ()
 Categorization commands type.
void GetCmdError ()
 Received command error.
void GetFileName ()
 FileName process.
void SendContentToFile ()
 Request sent contents to main.
void GetHelpCmd ()
 Command help.
void ClearCmdIndexAndBuf ()
 Clear index and buffer of command and file name.
void ClearContentIndexAndBuf ()
 Clear index and buffer of contents.
void ClearFileNameBuf ()
 Clear fileName buffer.

Detailed Description

Command for Mini-RMS <> RMS via UART.

Author:
Surasak N
Version:
V2
Date:
20/09/2016

Definition in file RMS_UART.cpp.


Function Documentation

void CheckCmdType (  )

Checking and processing command type.

Note:
$ls, $ed, $rd, $rs and $df and etc.
Return values:

Definition at line 140 of file RMS_UART.cpp.

void CheckContentMsg (  )

Checking and processing contents data.

Note:
Check command *end* and clear buffer
Return values:

Definition at line 113 of file RMS_UART.cpp.

void CheckReadEditCmd (  )

Categorization commands type.

Note:
Received file name and type
Return values:

Definition at line 249 of file RMS_UART.cpp.

void ClearCmdIndexAndBuf (  )

Clear index and buffer of command and file name.

Note:
Return values:

Definition at line 385 of file RMS_UART.cpp.

void ClearContentIndexAndBuf (  )

Clear index and buffer of contents.

Note:
Return values:

Definition at line 399 of file RMS_UART.cpp.

void ClearFileNameBuf (  )

Clear fileName buffer.

Note:
Return values:

Definition at line 413 of file RMS_UART.cpp.

void DoTheContent (  )

Fill serial data as in contents buffer.

Note:
Return values:

Definition at line 74 of file RMS_UART.cpp.

void DoTheMsgCmd (  )

Fill serial data as in command buffer.

Note:
Command type and FileName
Return values:

Definition at line 94 of file RMS_UART.cpp.

void GetCmdError (  )

Received command error.

Note:
$??
Return values:

Definition at line 317 of file RMS_UART.cpp.

void GetFileName (  )

FileName process.

Note:
Fill file name as buffer
Return values:

Definition at line 331 of file RMS_UART.cpp.

void GetHelpCmd (  )

Command help.

Note:
$-h
Return values:

Definition at line 364 of file RMS_UART.cpp.

void Init_SerialDevice (  )

Initials bsp and interrupt of serial communication.

Note:
BPS have 9600bps only
Return values:

Definition at line 38 of file RMS_UART.cpp.

void RxMsgInterruptCallback (  )

Intertupt callback function.

Note:
Management fill buffer direction
Return values:

Definition at line 52 of file RMS_UART.cpp.

void SendContentToFile (  )

Request sent contents to main.

Note:
Return values:

Definition at line 345 of file RMS_UART.cpp.