SubGhz: refactoring add descriptions (#1012)
* SubGhz: add descriptions * SubGhz: fix syntax Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
@@ -16,54 +16,57 @@ ARRAY_DEF(SubGhzKeyArray, SubGhzKey, M_POD_OPLIST)
|
||||
|
||||
typedef struct SubGhzKeystore SubGhzKeystore;
|
||||
|
||||
/** Allocate SubGhzKeystore
|
||||
*
|
||||
* @return SubGhzKeystore*
|
||||
/**
|
||||
* Allocate SubGhzKeystore.
|
||||
* @return SubGhzKeystore* pointer to a SubGhzKeystore instance
|
||||
*/
|
||||
SubGhzKeystore* subghz_keystore_alloc();
|
||||
|
||||
/** Free SubGhzKeystore
|
||||
*
|
||||
* @param instance
|
||||
/**
|
||||
* Free SubGhzKeystore.
|
||||
* @param instance Pointer to a SubGhzKeystore instance
|
||||
*/
|
||||
void subghz_keystore_free(SubGhzKeystore* instance);
|
||||
|
||||
/** Loading manufacture key from file
|
||||
*
|
||||
* @param instance - SubGhzKeystore instance
|
||||
* @param filename - const char* full path to the file
|
||||
/**
|
||||
* Loading manufacture key from file
|
||||
* @param instance Pointer to a SubGhzKeystore instance
|
||||
* @param filename Full path to the file
|
||||
*/
|
||||
bool subghz_keystore_load(SubGhzKeystore* instance, const char* filename);
|
||||
|
||||
/** Save manufacture key to file
|
||||
*
|
||||
* @param instance - SubGhzKeystore instance
|
||||
* @param filename - const char* full path to the file
|
||||
/**
|
||||
* Save manufacture key to file
|
||||
* @param instance Pointer to a SubGhzKeystore instance
|
||||
* @param filename Full path to the file
|
||||
* @return true On success
|
||||
*/
|
||||
bool subghz_keystore_save(SubGhzKeystore* instance, const char* filename, uint8_t* iv);
|
||||
|
||||
/** Get array of keys and names manufacture
|
||||
*
|
||||
* @param instance - SubGhzKeystore instance
|
||||
/**
|
||||
* Get array of keys and names manufacture
|
||||
* @param instance Pointer to a SubGhzKeystore instance
|
||||
* @return SubGhzKeyArray_t*
|
||||
*/
|
||||
SubGhzKeyArray_t* subghz_keystore_get_data(SubGhzKeystore* instance);
|
||||
|
||||
/** Save RAW encrypted to file
|
||||
*
|
||||
* @param input_file_name - const char* full path to the input file
|
||||
* @param output_file_name - const char* full path to the output file
|
||||
/**
|
||||
* Save RAW encrypted to file
|
||||
* @param input_file_name Full path to the input file
|
||||
* @param output_file_name Full path to the output file
|
||||
* @param iv IV, 16 bytes in hex
|
||||
*/
|
||||
bool subghz_keystore_raw_encrypted_save(
|
||||
const char* input_file_name,
|
||||
const char* output_file_name,
|
||||
uint8_t* iv);
|
||||
|
||||
/** Get decrypt RAW data to file
|
||||
*
|
||||
* @param file_name - const char* full path to the input file
|
||||
* @param offset - offset from the start of the RAW data
|
||||
* @param data - returned array
|
||||
* @param len - required data length
|
||||
/**
|
||||
* Get decrypt RAW data to file
|
||||
* @param file_name Full path to the input file
|
||||
* @param offset Offset from the start of the RAW data
|
||||
* @param data Returned array
|
||||
* @param len Required data length
|
||||
* @return true On success
|
||||
*/
|
||||
bool subghz_keystore_raw_get_data(const char* file_name, size_t offset, uint8_t* data, size_t len);
|
||||
|
Reference in New Issue
Block a user