OPTIGA™ Trust M
Host Library Documentation
pal_file_system.h
Go to the documentation of this file.
1 
39 #ifndef _PROTECTED_UPDATE_PAL_FILE_SYSTEM_
40 #define _PROTECTED_UPDATE_PAL_FILE_SYSTEM_
41 
42 #include <stdint.h>
43 
44 // Read file to a byte array
45 int32_t pal_file_system_read_file_to_array( const int8_t * file_name,
46  uint8_t ** byte_array,
47  uint16_t * byte_array_length);
48 
49 int32_t pal_file_system_read_file_to_array_in_hex( const int8_t * file_name,
50  uint8_t ** byte_array,
51  uint16_t * byte_array_length);
52 
53 int32_t pal_file_system_write_to_file( const int8_t * file_name,
54  int8_t * byte_array,
55  uint16_t byte_array_length);
56 #endif //_PROTECTED_UPDATE_PAL_FILE_SYSTEM_
57 
pal_file_system_read_file_to_array
int32_t pal_file_system_read_file_to_array(const int8_t *file_name, uint8_t **byte_array, uint16_t *byte_array_length)
pal_file_system_read_file_to_array_in_hex
int32_t pal_file_system_read_file_to_array_in_hex(const int8_t *file_name, uint8_t **byte_array, uint16_t *byte_array_length)
pal_file_system_write_to_file
int32_t pal_file_system_write_to_file(const int8_t *file_name, int8_t *byte_array, uint16_t byte_array_length)