OpenCBM
Macros | Functions
xum1541/s1_s2_pp.c File Reference

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

#include <stdlib.h>
#include "archlib.h"
#include "xum1541.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...
 
int CBMAPIDECL opencbm_plugin_nib_read_n (CBM_FILE HandleDevice, unsigned char *data, unsigned int size)
 Read data with burst nibbler protocol (cbmcopy) More...
 
int CBMAPIDECL opencbm_plugin_nib_write_n (CBM_FILE HandleDevice, const unsigned char *data, unsigned int size)
 Write data with burst nibbler protocol (cbmcopy) More...
 

Detailed Description

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



Author
Till Harbaum, Spiro Trikaliotis

Definition in file xum1541/s1_s2_pp.c.

Function Documentation

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

Read data with burst nibbler 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 actually read, 0 on device error. If there is a fatal error, returns -1.

Definition at line 238 of file xum1541/s1_s2_pp.c.

References xum1541_read().

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

Write data with burst nibbler 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 actually written, 0 on device error. If there is a fatal error, returns -1.

Definition at line 259 of file xum1541/s1_s2_pp.c.

References xum1541_write().

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 actually read, 0 on device error. If there is a fatal error, returns -1.

Definition at line 196 of file xum1541/s1_s2_pp.c.

References xum1541_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 actually written, 0 on device error. If there is a fatal error, returns -1.

Definition at line 217 of file xum1541/s1_s2_pp.c.

References xum1541_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 actually read, 0 on device error. If there is a fatal error, returns -1.

Definition at line 154 of file xum1541/s1_s2_pp.c.

References xum1541_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 actually written, 0 on device error. If there is a fatal error, returns -1.

Definition at line 175 of file xum1541/s1_s2_pp.c.

References xum1541_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 actually read, 0 on device error. If there is a fatal error, returns -1.

Definition at line 70 of file xum1541/s1_s2_pp.c.

References xum1541_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 actually read, 0 on device error. If there is a fatal error, returns -1.

Definition at line 91 of file xum1541/s1_s2_pp.c.

References xum1541_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 actually read, 0 on device error. If there is a fatal error, returns -1.

Definition at line 112 of file xum1541/s1_s2_pp.c.

References xum1541_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 actually written, 0 on device error. If there is a fatal error, returns -1.

Definition at line 133 of file xum1541/s1_s2_pp.c.

References xum1541_write().