HALFRED  0.4.0
Functions
hal_ioserial.c File Reference

Implementation of the serial port API. More...

Detailed Description

Implementation of the serial port API.

Purpose
HALFRED Hardware Abstraction Layer
Version
Revision
1563
License
$License$
#include "hal.h"
#include "internal/hali_ioserial.h"

Functions

IODevice HAL_PORT_IOSERIAL_Create (const char *name)
 
void HAL_PORT_IOSERIAL_Destroy (IODevice serial)
 
unsigned int HAL_PORT_IOSERIAL_Enumerate (void)
 
const char * HAL_PORT_IOSERIAL_GetEnumeratedDeviceName (unsigned int index)
 
unsigned int IOSERIAL_Enumerate (void)
 
const char * IOSERIAL_GetEnumeratedDeviceName (unsigned int ind)
 
IODevice IOSERIAL_Create (const char *name)
 
void IOSERIAL_Destroy (IODevice serial)
 
HALRESULT IOSERIAL_SetFrameFormat (IODevice serial, IOSERIAL_NumberOfDataBits data_bits, IOSERIAL_Parity parity, IOSERIAL_NumberOfStopBits stop)
 
HALRESULT IOSERIAL_GetFrameFormat (IODevice serial, IOSERIAL_NumberOfDataBits *data_bits, IOSERIAL_Parity *parity, IOSERIAL_NumberOfStopBits *stop)
 
HALRESULT IOSERIAL_SetBaudrate (IODevice serial, uint32_t baudrate)
 
uint32_t IOSERIAL_GetBaudrate (IODevice serial)
 
HALRESULT IOSERIAL_SetHandshaking (IODevice serial, IOSERIAL_Handshaking handshaking)
 
IOSERIAL_Handshaking IOSERIAL_GetHandshaking (IODevice serial)
 
HALRESULT IOSERIAL_EnableRTS (IODevice serial)
 
HALRESULT IOSERIAL_DisableRTS (IODevice serial)
 
HALRESULT IOSERIAL_SetRTS (IODevice serial, bool rts)
 
bool IOSERIAL_GetRTS (IODevice serial)
 
HALRESULT IOSERIAL_EnableCTS (IODevice serial)
 
HALRESULT IOSERIAL_DisableCTS (IODevice serial)
 
HALRESULT IOSERIAL_SetCTS (IODevice serial, bool cts)
 
bool IOSERIAL_GetCTS (IODevice serial)