#include <elxu_device.h>Go to the source code of this file.
Data Structures | |
| struct | sli4_object_t |
Functions | |
| sli4_object_t * | sli4_object_new (const char *name, uint32_t type, uint32_t length) |
| Instantiate a new sli4_object_t. More... | |
| void | sli4_object_free (sli4_object_t *obj) |
| Free and sli4_object_t. More... | |
| void | sli4_object_free_list (sli4_object_t *head) |
| Free a list of sli4_object_t's. More... | |
| sli4_object_t * | sli4_object_enumerate (elxu_device_t *device) |
| Create a list of all SLI4 objects. More... | |
| int | sli4_object_delete (elxu_device_t *device, const char *objectName) |
| Deletes an SLI4 object. More... | |
| int | sli4_object_read (elxu_device_t *device, const char *objectName, void *buffer, uint32_t bufferLength) |
| Read data from an object. More... | |
| int | sli4_object_write (elxu_device_t *device, const char *objectName, int buffer_offset, void *buffer, uint32_t bufferLength, int eofl) |
| Write data into an object. More... | |
| int | sli4_object_length (elxu_device_t *device, const char *objectName) |
| Return an SLI4 object's length in bytes. More... | |
| int sli4_object_delete | ( | elxu_device_t * | device, |
| const char * | objectName | ||
| ) |
Deletes an SLI4 object.
Deletes the SLI4 object.
| device | pointer to device |
| objectName | name of object |
Definition at line 214 of file elxu_lancer.c.
| sli4_object_t* sli4_object_enumerate | ( | elxu_device_t * | device | ) |
Create a list of all SLI4 objects.
The SLI4 HBA referred to by 'device' is scanned returning a list of all objects
| device | pointer to device |
Definition at line 53 of file elxu_lancer.c.
| void sli4_object_free | ( | sli4_object_t * | obj | ) |
Free and sli4_object_t.
The object given by 'obj' if free'd
| obj | Object to free |
Definition at line 553 of file elxu_lancer.c.
| void sli4_object_free_list | ( | sli4_object_t * | head | ) |
Free a list of sli4_object_t's.
The elements of list given by 'head' are freed
| head | head of list |
Definition at line 570 of file elxu_lancer.c.
| int sli4_object_length | ( | elxu_device_t * | device, |
| const char * | objectName | ||
| ) |
Return an SLI4 object's length in bytes.
Returns the length of an SLI4 normal object, or the number of elements in an SLI4 directory object
| device | pointer to device |
| objectName | name of object |
Definition at line 271 of file elxu_lancer.c.
| sli4_object_t* sli4_object_new | ( | const char * | name, |
| uint32_t | type, | ||
| uint32_t | length | ||
| ) |
Instantiate a new sli4_object_t.
An sli4_object_t is allocated and populated with name, type and length;
| name | Name of object |
| type | Type of object |
| length | Length of object |
Definition at line 533 of file elxu_lancer.c.
| int sli4_object_read | ( | elxu_device_t * | device, |
| const char * | objectName, | ||
| void * | buffer, | ||
| uint32_t | bufferLength | ||
| ) |
Read data from an object.
The data of an SLI4 data object is read.
| device | pointer to device |
| objectName | name of object to read |
| buffer | pointer to data buffer |
| bufferLength | byte length of data buffer |
returns the number of bytes read, or a negative value
Definition at line 333 of file elxu_lancer.c.
| int sli4_object_write | ( | elxu_device_t * | device, |
| const char * | objectName, | ||
| int | buffer_offset, | ||
| void * | buffer, | ||
| uint32_t | bufferLength, | ||
| int | eofl | ||
| ) |
Write data into an object.
Write the data into an SLI4 data object.
| device | pointer to device |
| objectName | name of object to write |
| buffer | pointer to data buffer |
| bufferLength | byte length of data buffer |
returns the number of bytes written, or a negative value
Definition at line 429 of file elxu_lancer.c.