MAXREFDES62# Code Documentation  V01.00
RS-485 Micro PLC
 All Files Functions Variables Macros Pages
maxim_device_specific_utilities.c File Reference
#include "maxim_device_specific_utilities.h"
#include "stm32f10x_gpio.h"
#include "stm32f10x_spi.h"

Go to the source code of this file.

Functions

uint8_t maxim_keypress_loopback (uint8_t uch_char)
 Keypress loopback test.
 
uint8_t maxim_send_file_loopback (void)
 Send file loopback test.
 

Detailed Description

******************************************************

Project: MAXREFDES62# Filename: maxim_device_specific_utilities.c Description: This module is an embedded controller driver for the MAXREFDES62#. It contains high level functions: maxim_keypress_loopback maxim_send_file_loopback

Revision History:
9/17/2014 Rev 01.00 GL Initial release.


This code follows the following naming conventions:


char ch_pmod_value
char (array) s_pmod_string[16]
float f_pmod_value
int n_pmod_value
int (array) an_pmod_value[16]
u16 u_pmod_value
u16 (array) au_pmod_value[16]
u8 uch_pmod_value
u8 (array) auch_pmod_buffer[16]
unsigned int un_pmod_value
int * pun_pmod_value


Definition in file maxim_device_specific_utilities.c.

Function Documentation

uint8_t maxim_keypress_loopback ( uint8_t  uch_char)

Keypress loopback test.

Details
This function waits for a character from UART1, then transmits it through UART2. If the output of the MAX14783 is connected to the input of the MAX14789E, then the same character will be received from UART3. This function checks the loopback character against the original character received from UART1.
Parameters
None
Return values
PASSor FAIL

Definition at line 67 of file maxim_device_specific_utilities.c.

uint8_t maxim_send_file_loopback ( void  )

Send file loopback test.

Details
Similar to the keypress loopback test. This function continously receives data from the terminal program. Loopback tests are done on each received character. Function returns when the wait time is over 1 second, that indicates the end of file.
Parameters
None
Return values
PASSor FAIL

Definition at line 105 of file maxim_device_specific_utilities.c.