ROBOOT communication interface


Detailed Description

Purpose.

The purpose of this interface is to provide hardware-specific communication functions, that are used to send the bootloader image to the target.

Realization.

The realization of this interface is optional. You only need this is if you want to use one of the communication protocols that are shipped with ROBOOT.

Functions

void CommHwInit (void)
void CommHwDeinit (void)
void CommHwSendByte (uint8_t a_byte)
int16_t CommHwGetByte (void)
void MCUBusyDelay (void)


Function Documentation

void CommHwInit ( void   ) 

Initializes communication channel e.g. serial port.

Definition at line 49 of file roboot_if_comm_stm32.c.

Referenced by FeedImageProcessor().

void CommHwDeinit ( void   ) 

Deinitializes communication channel e.g. serial port.

Definition at line 164 of file roboot_if_comm_stm32.c.

void CommHwSendByte ( uint8_t  a_byte  ) 

Sends one byte through communication channel.

Parameters:
a_byte a byte to send

Definition at line 171 of file roboot_if_comm_stm32.c.

Referenced by FeedImageProcessor().

int16_t CommHwGetByte ( void   ) 

Receives one byte from communication channel.

Returns:
less than zero value if case of communication error or if data is not available

Definition at line 184 of file roboot_if_comm_stm32.c.

Referenced by FeedImageProcessor().

void MCUBusyDelay ( void   ) 

Delays further actions by introducing delay for 10 microseconds. This function is used for waiting for completion of IO operations.

Definition at line 198 of file roboot_if_comm_stm32.c.


Generated on Tue Mar 9 07:57:33 2010 for 'ROBOOT' by  doxygen 1.5.8