Merge pull request #45 from lategoodbye/master

fixes for doxygen
This commit is contained in:
Robert Johansson 2013-04-18 08:24:30 -07:00
commit 65c036f0d2

View File

@ -83,7 +83,7 @@ extern "C" {
/** /**
* Unified MBus handle type encapsulating either Serial or TCP gateway. * Unified MBus handle type encapsulating either Serial or TCP gateway.
*/ */
struct _mbus_handle { typedef struct _mbus_handle {
int fd; int fd;
int max_retry; int max_retry;
char purge_first_frame; char purge_first_frame;
@ -94,9 +94,7 @@ struct _mbus_handle {
int (*recv) (struct _mbus_handle *handle, mbus_frame *frame); int (*recv) (struct _mbus_handle *handle, mbus_frame *frame);
void (*free_auxdata) (struct _mbus_handle *handle); void (*free_auxdata) (struct _mbus_handle *handle);
void *auxdata; void *auxdata;
}; } mbus_handle;
typedef struct _mbus_handle mbus_handle;
/** /**
* MBus slave address type (primary/secodary address) * MBus slave address type (primary/secodary address)
@ -143,14 +141,12 @@ typedef struct _mbus_record {
} mbus_record; } mbus_record;
/** /**
* MBus handle option type * MBus handle option enumeration
*/ */
enum _mbus_context_option { typedef enum _mbus_context_option {
MBUS_OPTION_MAX_RETRY, MBUS_OPTION_MAX_RETRY, /**< option defines the maximum attempts of data retransmission */
MBUS_OPTION_PURGE_FIRST_FRAME MBUS_OPTION_PURGE_FIRST_FRAME /**< option controls the echo cancelation for mbus_recv_frame */
}; } mbus_context_option;
typedef enum _mbus_context_option mbus_context_option;
/** /**
* Event callback functions * Event callback functions
@ -271,7 +267,7 @@ int mbus_send_select_frame(mbus_handle * handle, const char *secondary_addr_str)
int mbus_send_switch_baudrate_frame(mbus_handle * handle, int address, int baudrate); int mbus_send_switch_baudrate_frame(mbus_handle * handle, int address, int baudrate);
/** /**
* Sends request frame to given slave using "unified" handle * Sends request frame (REQ_UD2) to given slave using "unified" handle
* *
* @param handle Initialized handle * @param handle Initialized handle
* @param address Address (0-255) * @param address Address (0-255)
@ -367,7 +363,7 @@ mbus_record *mbus_parse_fixed_record(char statusByte, char medium_unit_byte, u_c
/** /**
* Create/parse single counter from the variable data structure record * Create/parse single counter from the variable data structure record
* *
* @param data record data to be parsed * @param record record data to be parsed
* *
* @return Newly allocated record if succesful, NULL otherwise. Later on need to use #mbus_record_free * @return Newly allocated record if succesful, NULL otherwise. Later on need to use #mbus_record_free
*/ */
@ -452,6 +448,7 @@ char * mbus_frame_data_xml_normalized(mbus_frame_data *data);
* Iterate over secondary addresses, send a probe package to all addresses matching * Iterate over secondary addresses, send a probe package to all addresses matching
* the given addresses mask. * the given addresses mask.
* *
* @param handle Initialized handle
* @param pos current address * @param pos current address
* @param addr_mask address mask to * @param addr_mask address mask to
* *