Lely core libraries
2.3.4
|
Go to the documentation of this file.
22 #ifndef LELY_IO2_WIN32_IXXAT_H_
23 #define LELY_IO2_WIN32_IXXAT_H_
50 void *io_ixxat_ctrl_alloc(
void);
51 void io_ixxat_ctrl_free(
void *ptr);
53 UINT32 dwCanNo,
int flags,
int nominal,
int data);
77 int flags,
int nominal,
int data);
99 UINT32 dwCanNo,
int flags,
int nominal,
int data);
107 void *io_ixxat_chan_alloc(
void);
108 void io_ixxat_chan_free(
void *ptr);
110 ev_exec_t *exec,
int rxtimeo,
int txtimeo);
165 UINT16 wRxFifoSize, UINT16 wTxFifoSize);
183 UINT32 dwTscClkFreq, UINT32 dwTscDivisor);
217 #endif // !LELY_IO2_WIN32_IXXAT_H_
HANDLE io_ixxat_ctrl_get_handle(const io_can_ctrl_t *ctrl)
Returns the native handle of the CAN controller.
const struct ev_exec_vtbl *const ev_exec_t
An abstract task executor.
void io_ixxat_fini(void)
Frees the "vcinpl.dll" or "vcinpl2.dll" library and terminates the availability of the IXXAT function...
io_can_chan_t * io_ixxat_chan_create(io_ctx_t *ctx, ev_exec_t *exec, int rxtimeo, int txtimeo)
Creates a new IXXAT CAN channel.
int io_ixxat_chan_is_open(const io_can_chan_t *chan)
Returns 1 is the CAN channel is open and 0 if not.
HANDLE io_ixxat_chan_get_handle(const io_can_chan_t *chan)
Returns the native handle of the CAN channel, or NULL if the channel is closed.
void io_ixxat_chan_destroy(io_can_chan_t *chan)
Destroys an IXXAT CAN channel.
const struct io_can_chan_vtbl *const io_can_chan_t
An abstract CAN channel.
HANDLE io_ixxat_chan_release(io_can_chan_t *chan)
Dissociates and returns the native handle from a CAN channel.
io_can_ctrl_t * io_ixxat_ctrl_create_from_luid(const LUID *lpLuid, UINT32 dwCanNo, int flags, int nominal, int data)
Creates a new IXXAT CAN controller from a locally unique identifier (LUID).
io_can_ctrl_t * io_ixxat_ctrl_create_from_index(UINT32 dwIndex, UINT32 dwCanNo, int flags, int nominal, int data)
Creates a new IXXAT CAN controller from a device index.
void io_ixxat_ctrl_destroy(io_can_ctrl_t *ctrl)
Destroys an IXXAT CAN controller.
int io_ixxat_init(void)
Loads the "vcinpl.dll" or "vcinpl2.dll" library and makes the IXXAT functions available for use.
int io_ixxat_chan_open(io_can_chan_t *chan, const io_can_ctrl_t *ctrl, UINT16 wRxFifoSize, UINT16 wTxFifoSize)
Opens a CAN channel.
int io_ixxat_chan_assign(io_can_chan_t *chan, HANDLE hCanChn, UINT32 dwTscClkFreq, UINT32 dwTscDivisor)
Assigns an existing handle to a CAN channel, and activates the channel if necessary.
const struct io_can_ctrl_vtbl *const io_can_ctrl_t
An abstract CAN controller.
int io_ixxat_chan_close(io_can_chan_t *chan)
Closes a CAN channel.