Application programming interface for CSI. More...
#include "csi_dev.h"
#include "csi_bus.h"
#include "csi_types.h"
#include "csi_err.h"
#include "csi_hwserial.h"
#include <string.h>
Include dependency graph for csi_dev.c:
Functions | |
long | Csi_AutoDetectSerialChannel (struct CsiDev *pDev) |
long | CsiClose (struct CsiBus *pBus) |
Closes the serial connection and frees allocated resources. More... | |
long | CsiConnectToDevice (struct CsiBus *pBus, const char *SerialDeviceName, uint32_t BaudRate, uint32_t TimeoutMs, struct CsiDev *pDev, uint8_t NodeId) |
The function initializes the bus object (pBus), the serial channel object (pChan) with the baud rate and timeout values and opens the serial connection to the device. More... | |
long | CsiDevInit (struct CsiBus *pBus, uint8_t NodeId, struct CsiDev *pDev, enum CsiSerialProtocolVersion SerProtocolVersion) |
Initialize CSI device object with all parameters. More... | |
long | CsiDevReadLargeObject (struct CsiDev *pDev, uint16_t ObjDicIdx, uint8_t ObjDicSub, void *pDataBuffer, uint16_t BufferSize) |
This function reads object dictionary entries with a data size > 4 bytes. More... | |
long | CsiDevReadObject (struct CsiDev *pDev, uint16_t ObjDicIdx, uint8_t ObjDicSub, uint32_t *pRxDWord) |
This function reads up to 4 bytes of data from device object dictionary. More... | |
long | CsiDevWriteLargeObject (struct CsiDev *pDev, uint16_t ObjDicIdx, uint8_t ObjDicSub, void *pDataBuffer, uint32_t DataSize, CsiDataTransferCallback Callback) |
This function writes object dictionary entries with a data size > 4 bytes. More... | |
long | CsiDevWriteObject (struct CsiDev *pDev, uint16_t ObjDicIdx, uint8_t ObjDicSub, uint32_t TxDWord) |
This function writes up to 4 bytes of data into device object dictionary. More... | |
long | CsiOpen (struct CsiBus *pBus, const char *DeviceName, uint32_t BaudRate, uint32_t TimeoutMs) |
Initialize CSI API and connection to CSI bus. More... | |
long | CsiSetCommTimout (struct CsiBus *pBus, uint32_t TimeoutMs) |
Set timeout in milliseconds for bus communication (read/write). More... | |
Detailed Description
Application programming interface for CSI.
- Date
- 2009/08/27