mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-27 15:00:46 +00:00
7f94ef3179
* Flipper file format: remove C wrapper * Flipper file format: open append, float, uint32_t as array, delete key, value count * Flipper file format: fix scratchpad location * Flipper file format: add EOL on append * SubGHZ keystore: update encryption type read and write * Flipper File Format: enhanced version * Flipper File Format: fix naming * Flipper File Format: fix "open" subset naming * Flipper File Format: tests * Flipper File Format: file helper naming * SubGHZ keystore: merge with current state of flipper file format * Flipper File Format: update make recipe * Flipper File Format: open new file method
28 lines
No EOL
552 B
C
28 lines
No EOL
552 B
C
#pragma once
|
|
#include "stdint.h"
|
|
#include "stdbool.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/**
|
|
* Convert ASCII hex value to nibble
|
|
* @param c ASCII character
|
|
* @param nibble nibble pointer, output
|
|
* @return bool conversion status
|
|
*/
|
|
bool hex_char_to_hex_nibble(char c, uint8_t* nibble);
|
|
|
|
/**
|
|
* Convert ASCII hex values to byte
|
|
* @param hi hi nibble text
|
|
* @param low low nibble text
|
|
* @param value output value
|
|
* @return bool conversion status
|
|
*/
|
|
bool hex_chars_to_uint8(char hi, char low, uint8_t* value);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif |