Helper Functions

Overview

A set of tool functions for device access.

+ Collaboration diagram for Helper Functions:

Functions

long NemReadStatusWord (TNemesys *Nemesys, uint16_t *pwStatusWord)
 Read status word from device The bits of the statusword indicate the current state of the drive. More...
 

Function Documentation

long NemReadStatusWord ( TNemesys Nemesys,
uint16_t *  pwStatusWord 
)

Read status word from device The bits of the statusword indicate the current state of the drive.

Parameters
[in]NemesysDevice to query
[out]pwStatusWordBuffer stores received status word
Returns
Error code - ERR_NOERR indicates success

Referenced by Nem_ExecDrvStateCmd(), Nem_IsState(), and NemSetEnabled().

722 {
723  long Result;
724  uint32_t StatusWord;
725 
726  Result = CsiDevReadObject(&Nemesys->Device, NEM_OD_H6041_STATUS_WORD, 0, &StatusWord);
727  *pwStatusWord = StatusWord;
728 
729  return Result;
730 }
long CsiDevReadObject(struct CsiDev *pDev, uint16_t ObjDicIdx, uint8_t ObjDicSub, uint32_t *pRxDWord)
This function reads up to 4 bytes of data from device object dictionary.
Definition: csi_dev.c:157
struct CsiDev Device
CSI device object.
Definition: nem_rs232_api.h:41

+ Here is the call graph for this function: