csi_common.c File Reference
Implementation of common serial port functions. More...
Include dependency graph for csi_common.c:
Functions | |
long | CsiSerOpenChannel (struct CsiSerChannel *pChan, const char *DeviceName, uint32_t BaudRate) |
This is a hardware independent function to open a serial channel. More... | |
void | CsiSleep (uint32_t Milliseconds) |
Function to sleep for a certain amount of milliseconds. | |
Detailed Description
Implementation of common serial port functions.
- Date
- 31.07.2014
Function Documentation
long CsiSerOpenChannel | ( | struct CsiSerChannel * | pChan, |
const char * | DeviceName, | ||
uint32_t | BaudRate | ||
) |
This is a hardware independent function to open a serial channel.
This function calls CsiHwSerOpenChannel to open the serial channel with the given parameters
- Parameters
-
[in] pChan Serial channel to initialize [in] DeviceName Name of the serial device to open (i.e. COM1) [in] BaudRate The baud rate to use for communication
- Returns
- Error code - CSI_ERR_NOERR indicates success
CSI_API long CsiHwSerOpenChannel(struct CsiSerChannel *pChan)
Initializes serial channel configuration data and opens serial connection.
Here is the call graph for this function: