OpenCBM
Macros | Functions
xu1541/s1_s2_pp.c File Reference

Shared library / DLL for accessing the driver: Code for accessing fast protocols of xu1541. More...

#include <stdlib.h>
#include "archlib.h"
#include "xu1541.h"

Go to the source code of this file.

Macros

#define OPENCBM_PLUGIN
 mark: We are building the DLL */
 

Functions

int CBMAPIDECL opencbm_plugin_s1_read_n (CBM_FILE HandleDevice, unsigned char *data, unsigned int size)
 Read data with serial1 protocol. More...
 
int CBMAPIDECL opencbm_plugin_s1_write_n (CBM_FILE HandleDevice, const unsigned char *data, unsigned int size)
 Write data with serial1 protocol. More...
 
int CBMAPIDECL opencbm_plugin_s2_read_n (CBM_FILE HandleDevice, unsigned char *data, unsigned int size)
 Read data with serial2 protocol. More...
 
int CBMAPIDECL opencbm_plugin_s2_write_n (CBM_FILE HandleDevice, const unsigned char *data, unsigned int size)
 Write data with serial2 protocol. More...
 
int CBMAPIDECL opencbm_plugin_pp_dc_read_n (CBM_FILE HandleDevice, unsigned char *data, unsigned int size)
 Read data with parallel protocol (d64copy) More...
 
int CBMAPIDECL opencbm_plugin_pp_dc_write_n (CBM_FILE HandleDevice, const unsigned char *data, unsigned int size)
 Write data with parallel protocol (d64copy) More...
 
int CBMAPIDECL opencbm_plugin_pp_cc_read_n (CBM_FILE HandleDevice, unsigned char *data, unsigned int size)
 Read data with parallel protocol (cbmcopy) More...
 
int CBMAPIDECL opencbm_plugin_pp_cc_write_n (CBM_FILE HandleDevice, const unsigned char *data, unsigned int size)
 Write data with parallel protocol (cbmcopy) More...
 

Detailed Description

Shared library / DLL for accessing the driver: Code for accessing fast protocols of xu1541.



Author
Till Harbaum, Spiro Trikaliotis

Definition in file xu1541/s1_s2_pp.c.

Function Documentation

int CBMAPIDECL opencbm_plugin_pp_cc_read_n ( CBM_FILE  HandleDevice,
unsigned char *  data,
unsigned int  size 
)

Read data with parallel protocol (cbmcopy)

Parameters
HandleDeviceA CBM_FILE which contains the file handle of the driver.
dataPointer to the data buffer which will hold the read bytes.
sizeThe size of the data buffer the read bytes will be written to.
Returns
The number of bytes read

Definition at line 187 of file xu1541/s1_s2_pp.c.

References xu1541_special_read().

int CBMAPIDECL opencbm_plugin_pp_cc_write_n ( CBM_FILE  HandleDevice,
const unsigned char *  data,
unsigned int  size 
)

Write data with parallel protocol (cbmcopy)

Parameters
HandleDeviceA CBM_FILE which contains the file handle of the driver.
dataPointer to the data buffer to be written
sizeThe size of the data buffer to be written
Returns
The number of bytes written

Definition at line 207 of file xu1541/s1_s2_pp.c.

References xu1541_special_write().

int CBMAPIDECL opencbm_plugin_pp_dc_read_n ( CBM_FILE  HandleDevice,
unsigned char *  data,
unsigned int  size 
)

Read data with parallel protocol (d64copy)

Parameters
HandleDeviceA CBM_FILE which contains the file handle of the driver.
dataPointer to the data buffer which will hold the read bytes.
sizeThe size of the data buffer the read bytes will be written to.
Returns
The number of bytes read

Definition at line 147 of file xu1541/s1_s2_pp.c.

References xu1541_special_read().

int CBMAPIDECL opencbm_plugin_pp_dc_write_n ( CBM_FILE  HandleDevice,
const unsigned char *  data,
unsigned int  size 
)

Write data with parallel protocol (d64copy)

Parameters
HandleDeviceA CBM_FILE which contains the file handle of the driver.
dataPointer to the data buffer to be written
sizeThe size of the data buffer to be written
Returns
The number of bytes written

Definition at line 167 of file xu1541/s1_s2_pp.c.

References xu1541_special_write().

int CBMAPIDECL opencbm_plugin_s1_read_n ( CBM_FILE  HandleDevice,
unsigned char *  data,
unsigned int  size 
)

Read data with serial1 protocol.

Parameters
HandleDeviceA CBM_FILE which contains the file handle of the driver.
dataPointer to the data buffer which will hold the read bytes.
sizeThe size of the data buffer the read bytes will be written to.
Returns
The number of bytes read

Definition at line 67 of file xu1541/s1_s2_pp.c.

References xu1541_special_read().

int CBMAPIDECL opencbm_plugin_s1_write_n ( CBM_FILE  HandleDevice,
const unsigned char *  data,
unsigned int  size 
)

Write data with serial1 protocol.

Parameters
HandleDeviceA CBM_FILE which contains the file handle of the driver.
dataPointer to the data buffer to be written
sizeThe size of the data buffer to be written
Returns
The number of bytes written

Definition at line 87 of file xu1541/s1_s2_pp.c.

References xu1541_special_write().

int CBMAPIDECL opencbm_plugin_s2_read_n ( CBM_FILE  HandleDevice,
unsigned char *  data,
unsigned int  size 
)

Read data with serial2 protocol.

Parameters
HandleDeviceA CBM_FILE which contains the file handle of the driver.
dataPointer to the data buffer which will hold the read bytes.
sizeThe size of the data buffer the read bytes will be written to.
Returns
The number of bytes read

Definition at line 107 of file xu1541/s1_s2_pp.c.

References xu1541_special_read().

int CBMAPIDECL opencbm_plugin_s2_write_n ( CBM_FILE  HandleDevice,
const unsigned char *  data,
unsigned int  size 
)

Write data with serial2 protocol.

Parameters
HandleDeviceA CBM_FILE which contains the file handle of the driver.
dataPointer to the data buffer to be written
sizeThe size of the data buffer to be written
Returns
The number of bytes written

Definition at line 127 of file xu1541/s1_s2_pp.c.

References xu1541_special_write().