Logo Search packages:      
Sourcecode: nut version File versions

shut_communication_subdriver_s Struct Reference

#include <libshut.h>

List of all members.

Detailed Description

shut_communication_subdriver_s: structure to describe the communication routines

Definition at line 53 of file libshut.h.

Public Attributes

void(* close )(int upsfd)
int(* get_interrupt )(int upsfd, unsigned char *buf, int bufsize, int timeout)
int(* get_report )(int upsfd, int ReportId, unsigned char *raw_buf, int ReportSize)
int(* get_string )(int upsfd, int StringIdx, char *buf, size_t buflen)
char * name
int(* open )(int *upsfd, SHUTDevice_t *curDevice, char *device_path, int(*callback)(int upsfd, SHUTDevice_t *hd, unsigned char *rdbuf, int rdlen))
int(* set_report )(int upsfd, int ReportId, unsigned char *raw_buf, int ReportSize)
char * version

The documentation for this struct was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index