|
Functions |
size_t | LEM_sizeofCmdList (unsigned nItems) |
size_t | LEM_sizeofRspList (unsigned nItems) |
size_t | LEM_sizeofRsplsList (unsigned nItems) |
size_t | LEM_sizeofDcdList (unsigned nItems) |
void * | LEM_allocCmdList (unsigned nItems) |
void * | LEM_allocRspList (unsigned nItems) |
void * | LEM_allocRsplsList (unsigned nItems) |
void * | LEM_allocDcdList (unsigned nItems) |
void | LEM_initCmdRsp (LEM_micr *cr, unsigned nItems, void *cmdList, void *rspList, void *dcdList) |
unsigned | LEM_allocCmdRsp (LEM_micr *cr, unsigned nItems) |
void | LEM_freeCmdRsp (LEM_micr *cr) |
| Free the memory previously allocated and "zero" the structure.
|
LEM_micr * | LEM_newMICR (void) |
| Allocate a multi-item command response structure, allocate the lists.
|
void | LEM_deleteMICR (LEM_micr *cr) |
| Free the command and response list, free the LEM_micr structure.
|
void | LEM_dumpMICR (LEM_micr *cr) |
| Print out the command and response lists in some nice formatted manner.
|
unsigned | LEM_queueWait (LEM_micr *cr) |
| Queue a homogeneous list of commands to the LCB, wait for the list to complete then check for transfer errors.
|
unsigned | LEM_handleLoadErrors (LEM_micr *cr) |
| Assumes that the command list was a homogeneous list of load commands so iterates over the responsless version of the result list and checks that there were no errors.
|
unsigned | LEM_handleReadErrors (LEM_micr *cr) |
| Assumes that the command list was a homogeneous list of read commands so iterates over the respons version of the result list and checks that there were no errors.
|
unsigned | LEM_decode (LEM_micr *cr) |
| Iterates through the result items, checks for errors then calls the decode-item function using the result-item payload an decode-item des pointer as parameters.
|
void | LEM_errorIgnore (unsigned error, unsigned index, void *param) |
| NO-OP function with the signature of an error handling function.
|