2022-07-10 10:23:45 +03:00
|
|
|
/*
|
2010-03-26 01:20:59 +02:00
|
|
|
* bcmxcp_io.h -- header for BCM/XCP IO module
|
2022-07-10 10:23:45 +03:00
|
|
|
*/
|
2010-03-26 01:20:59 +02:00
|
|
|
|
|
|
|
#ifndef BCMXCP_IO__
|
|
|
|
#define BCMXCP_IO__
|
|
|
|
|
2013-11-24 17:00:12 +02:00
|
|
|
#include "main.h" /* for usbdrv_info_t */
|
2010-03-26 01:20:59 +02:00
|
|
|
|
|
|
|
void send_read_command(unsigned char command);
|
2022-07-10 10:23:45 +03:00
|
|
|
void send_write_command(unsigned char *command, size_t command_length);
|
|
|
|
ssize_t get_answer(unsigned char *data, unsigned char command);
|
|
|
|
ssize_t command_read_sequence(unsigned char command, unsigned char *data);
|
|
|
|
ssize_t command_write_sequence(unsigned char *command, size_t command_length, unsigned char *answer);
|
2010-03-26 01:20:59 +02:00
|
|
|
void upsdrv_initups(void);
|
|
|
|
void upsdrv_cleanup(void);
|
|
|
|
void upsdrv_reconnect(void);
|
|
|
|
void upsdrv_comm_good(void);
|
|
|
|
|
|
|
|
extern upsdrv_info_t comm_upsdrv_info;
|
|
|
|
|
|
|
|
#endif /* BCMXCP_IO__ */
|