mirror of
git://git.psyc.eu/libpsyc
synced 2024-08-15 03:19:02 +00:00
added some documentation
This commit is contained in:
parent
890c2ad78d
commit
f1c03b463e
1 changed files with 10 additions and 1 deletions
|
@ -36,13 +36,22 @@ typedef struct
|
|||
} PSYC_State;
|
||||
|
||||
#ifndef PSYC_COMPILE_LIBRARY
|
||||
/* @brief shortcut for creating an array
|
||||
*
|
||||
* @param memory pointer to the buffer
|
||||
* @param length length of that buffer
|
||||
*
|
||||
* @returns an instance of the PSYC_Array struct */
|
||||
inline PSYC_Array PSYC_CreateArray (uint8_t* const memory, unsigned int length)
|
||||
{
|
||||
PSYC_Array arr = {length, memory};
|
||||
|
||||
return arr;
|
||||
}
|
||||
|
||||
/* @brief initiates the state struct with flags
|
||||
*
|
||||
* @param state pointer to the state struct that should be initiated
|
||||
* @param flags the flags that one ones to set, se PSYC_Flags */
|
||||
inline void PSYC_initState2 (PSYC_State* state, uint8_t flags )
|
||||
{
|
||||
memset(state, 0, sizeof(PSYC_State));
|
||||
|
|
Loading…
Reference in a new issue