*/
/**
- @ingroup MESSAGES
+ @defgroup PARSE Public API of PARSE
+
+*/
+
+/**
+ @ingroup PARSE
Test if a string contains only some characters or excludes them
}
/**
- @ingroup MESSAGES
+ @ingroup PARSE
Init parsing macro
}
/**
- @ingroup MESSAGES
+ @ingroup PARSE
Parsing macro for integer field
rc |= 1 << p; \
}
/**
- @ingroup MESSAGES
+ @ingroup PARSE
Parsing macro for floating point field
}
/**
- @ingroup MESSAGES
+ @ingroup PARSE
Parsing macro for array field
}
/**
- @ingroup MESSAGES
+ @ingroup PARSE
Parsing macro for fix table size field
}
/**
- @ingroup MESSAGES
+ @ingroup PARSE
End of parsing macro
*/
}
/**
- @ingroup MESSAGES
+ @ingroup PARSE
Initialize format section
int len = 0;
/**
- @ingroup MESSAGES
+ @ingroup PARSE
Format an integer field
}
/**
- @ingroup MESSAGES
+ @ingroup PARSE
Format a floating point field
}
/**
- @ingroup MESSAGES
+ @ingroup PARSE
Format an array field
}
/**
- @ingroup MESSAGES
+ @ingroup PARSE
Format an fix table size field
}
/**
- @ingroup MESSAGES
+ @ingroup PARSE
End of format section
*/
return (len >= _maxlen);
/**
- @ingroup MESSAGES
+ @ingroup PARSE
Initialize serialisation section
int len = 0;
/**
- @ingroup MESSAGES
+ @ingroup PARSE
Serialyze an integer field
}
/**
- @ingroup MESSAGES
+ @ingroup PARSE
Serialyze a floating point field
}
/**
- @ingroup MESSAGES
+ @ingroup PARSE
Serialyze an array field
}
/**
- @ingroup MESSAGES
+ @ingroup PARSE
Serialyze an fix table size field
}
/**
- @ingroup MESSAGES
+ @ingroup PARSE
End of serialisation section
*/
return len;
/**
- @ingroup MESSAGES
+ @ingroup PARSE
Initialize deserialisation section
uint8_t *ptr = _buffer;
/**
- @ingroup MESSAGES
+ @ingroup PARSE
Deserialyze to an integer field
}
/**
- @ingroup MESSAGES
+ @ingroup PARSE
Deserialyze to a floating point field
}
/**
- @ingroup MESSAGES
+ @ingroup PARSE
Deserialyze to a fix size table field
}
/**
- @ingroup MESSAGES
+ @ingroup PARSE
Deserialyze to an array field
}
/**
- @ingroup MESSAGES
+ @ingroup PARSE
End of deserialisation section
*/
return (ptr > end);
/**
- @ingroup MESSAGES
+ @ingroup PARSE
Initialize check section
int rc = 0;
/**
- @ingroup MESSAGES
+ @ingroup PARSE
Check two integer fields
}
/**
- @ingroup MESSAGES
+ @ingroup PARSE
Check two floating point fields
}
/**
- @ingroup MESSAGES
+ @ingroup PARSE
Check two fix size table fields
}
/**
- @ingroup MESSAGES
+ @ingroup PARSE
Check two array fields
}
/**
- @ingroup MESSAGES
+ @ingroup PARSE
End of check section
*/
__BEGIN_DECLS
/**
- @ingroup MESSAGE
+ @defgroup CHANNEL
+ @ingroup MESSAGES
+*/
+
+/**
+ @ingroup CHANNEL
Channel type
*/
} CHANNEL_t;
/**
- @ingroup MESSAGES
+ @ingroup CHANNEL
Parse a string containing some channel type fields
int parse_channel (char *line, CHANNEL_t *out);
/**
- @ingroup MESSAGES
+ @ingroup CHANNEL
Format channel type fields into a string
int format_channel (CHANNEL_t *in, char *buffer, int maxlen);
/**
- @ingroup MESSAGES
+ @ingroup CHANNEL
Serial channel type fields into a network stream
int serial_channel (CHANNEL_t *in, uint8_t *buffer, int maxlen);
/**
- @ingroup MESSAGES
+ @ingroup CHANNEL
Deserial channel type fields from a network stream
int deserial_channel (uint8_t *buffer, int len, CHANNEL_t *out);
/**
- @ingroup MESSAGES
+ @ingroup CHANNEL
Check two channel structures field by field
__BEGIN_DECLS
/**
- @ingroup MESSAGES
+ @defgroup CLEAR_DATA
+ @ingroup MESSAGES
+*/
+
+/**
+ @ingroup CLEAR_DATA
Clear data type
*/
} CLEAR_DATA_t;
/**
- @ingroup MESSAGES
+ @ingroup CLEAR_DATA
Parse a string containing some clear data type fields
int parse_clear_data (char *line, CLEAR_DATA_t *out);
/**
- @ingroup MESSAGES
+ @ingroup CLEAR_DATA
Format clear data type fields into a string
int format_clear_data (CLEAR_DATA_t *in, char *buffer, int maxlen);
/**
- @ingroup MESSAGES
+ @ingroup CLEAR_DATA
Serial clear data type fields into a network stream
int serial_clear_data (CLEAR_DATA_t *in, uint8_t *buffer, int maxlen);
/**
- @ingroup MESSAGES
+ @ingroup CLEAR_DATA
Deserial clear data type fields from a network stream
int deserial_clear_data (uint8_t *buffer, int len, CLEAR_DATA_t *out);
/**
- @ingroup MESSAGES
+ @ingroup CLEAR_DATA
Check two clear data structures field by field
__BEGIN_DECLS
/**
- @ingroup MESSAGE
+ @defgroup ENCRYPTED_DATA
+ @ingroup MESSAGES
+*/
+
+/**
+ @ingroup ENCRYPTED_DATA
Encrypted data type
*/
} ENCRYPTED_DATA_t;
/**
- @ingroup MESSAGES
+ @ingroup ENCRYPTED_DATA
Parse a string containing some encrypted data type fields
int parse_encrypted_data (char *line, ENCRYPTED_DATA_t *out);
/**
- @ingroup MESSAGES
+ @ingroup ENCRYPTED_DATA
Format encrypted data type fields into a string
int format_encrypted_data (ENCRYPTED_DATA_t *in, char *buffer, int maxlen);
/**
- @ingroup MESSAGES
+ @ingroup ENCRYPTED_DATA
Serial encrypted data type fields into a network stream
int serial_encrypted_data (ENCRYPTED_DATA_t *in, uint8_t *buffer, int maxlen);
/**
- @ingroup MESSAGES
+ @ingroup ENCRYPTED_DATA
Deserial encrypted data type fields from a network stream
int deserial_encrypted_data (uint8_t *buffer, int len, ENCRYPTED_DATA_t *out);
/**
- @ingroup MESSAGES
+ @ingroup ENCRYPTED_DATA
Check two encrypted data structures field by field
__BEGIN_DECLS
/**
- @ingroup MESSAGE
+ @defgroup KEY
+ @ingroup MESSAGES
+*/
+
+/**
+ @ingroup KEY
Key type
*/
} KEY_t;
/**
- @ingroup MESSAGES
+ @ingroup KEY
Parse a string containing some key type fields
int parse_key (char *line, KEY_t *out);
/**
- @ingroup MESSAGES
+ @ingroup KEY
Format key type fields into a string
int format_key (KEY_t *in, char *buffer, int maxlen);
/**
- @ingroup MESSAGES
+ @ingroup KEY
Serial key type fields into a network stream
int serial_key (KEY_t *in, uint8_t *buffer, int maxlen);
/**
- @ingroup MESSAGES
+ @ingroup KEY
Deserial key type fields from a network stream
int deserial_key (uint8_t *buffer, int len, KEY_t *out);
/**
- @ingroup MESSAGES
+ @ingroup KEY
Check two key structures field by field
__BEGIN_DECLS
/**
- @ingroup MESSAGE
+ @defgroup PRNG_PARAM
+ @ingroup MESSAGES
+*/
+
+/**
+ @ingroup PRNG_PARAM
PRNG parameter type
*/
} PRNG_PARAM_t;
/**
- @ingroup MESSAGES
+ @ingroup PRNG_PARAM
Parse a string containing some PRNG parameter type fields
int parse_prng_param (char *line, PRNG_PARAM_t *out);
/**
- @ingroup MESSAGES
+ @ingroup PRNG_PARAM
Format PRNG parameter type fields into a string
int format_prng_param (PRNG_PARAM_t *in, char *buffer, int maxlen);
/**
- @ingroup MESSAGES
+ @ingroup PRNG_PARAM
Serial PRNG parameter type fields into a network stream
int serial_prng_param (PRNG_PARAM_t *in, uint8_t *buffer, int maxlen);
/**
- @ingroup MESSAGES
+ @ingroup PRNG_PARAM
Deserial PRNG parameter type fields from a network stream
int deserial_prng_param (uint8_t *buffer, int len, PRNG_PARAM_t *out);
/**
- @ingroup MESSAGES
+ @ingroup PRNG_PARAM
Check two PRNG parameter structures field by field
__BEGIN_DECLS
/**
- @ingroup MESSAGES
+ @defgroup RAW_DATA
+ @ingroup MESSAGES
+*/
+
+/**
+ @ingroup RAW_DATA
Raw data type
*/
} RAW_DATA_t;
/**
- @ingroup MESSAGES
+ @ingroup RAW_DATA
Parse a string containing some raw data type fields
int parse_raw_data (char *line, RAW_DATA_t *out);
/**
- @ingroup MESSAGES
+ @ingroup RAW_DATA
Format raw data type fields into a string
int format_raw_data (RAW_DATA_t *in, char *buffer, int maxlen);
/**
- @ingroup MESSAGES
+ @ingroup RAW_DATA
Serialize raw data type fields into a network stream
int serial_raw_data (RAW_DATA_t *in, uint8_t *buffer, int maxlen);
/**
- @ingroup MESSAGES
+ @ingroup RAW_DATA
Deserial raw data type fields from a network stream
int deserial_raw_data (uint8_t *buffer, int len, RAW_DATA_t *out);
/**
- @ingroup MESSAGES
+ @ingroup RAW_DATA
Check two raw data structures field by field
__BEGIN_DECLS
/**
- @ingroup MESSAGE
+ @defgroup STATUS
+ @ingroup MESSAGES
+*/
+
+/**
+ @ingroup STATUS
Status type
*/
} STATUS_t;
/**
- @ingroup MESSAGES
+ @ingroup STATUS
Parse a string containing some status type fields
int parse_status (char *line, STATUS_t *out);
/**
- @ingroup MESSAGES
+ @ingroup STATUS
Format status type fields into a string
int format_status (STATUS_t *in, char *buffer, int maxlen);
/**
- @ingroup MESSAGES
+ @ingroup STATUS
Serial status type fields into a network stream
int serial_status (STATUS_t *in, uint8_t *buffer, int maxlen);
/**
- @ingroup MESSAGES
+ @ingroup STATUS
Deserial status type fields from a network stream
int deserial_status (uint8_t *buffer, int len, STATUS_t *out);
/**
- @ingroup MESSAGES
+ @ingroup STATUS
Check two status structures field by field