add: saving as wave format for LF traces, thanks (@anon)\n chg: 'data save f <filename> w - reword the params to command

This commit is contained in:
iceman1001 2019-12-22 11:19:06 +01:00
commit a4407ae9f1
3 changed files with 140 additions and 17 deletions

View file

@ -112,6 +112,30 @@ int saveFileEML(const char *preferredName, uint8_t *data, size_t datalen, size_t
*/
int saveFileJSON(const char *preferredName, JSONFileType ftype, uint8_t *data, size_t datalen);
/** STUB
* @brief Utility function to save WAVE data to a file. This method takes a preferred name, but if that
* file already exists, it tries with another name until it finds something suitable.
* E.g. dumpdata-15.wav
*
* @param preferredName
* @param data The binary data to write to the file
* @param datalen the length of the data
* @return 0 for ok
*/
int saveFileWAVE(const char *preferredName, int *data, size_t datalen);
/** STUB
* @brief Utility function to save PM3 data to a file. This method takes a preferred name, but if that
* file already exists, it tries with another name until it finds something suitable.
* E.g. dump_trace.pm3
*
* @param preferredName
* @param data The binary data to write to the file
* @param datalen the length of the data
* @return 0 for ok
*/
int saveFilePM3(const char *preferredName, int *data, size_t datalen);
/**
* @brief Utility function to save a keydump.
*