CTS-SAT-1-OBC-Firmware
Loading...
Searching...
No Matches
bulk_file_uplink.h File Reference
#include "littlefs/lfs.h"
#include <stdint.h>
Include dependency graph for bulk_file_uplink.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  COMMS_bulk_file_uplink_state_enum_t { COMMS_BULK_FILE_UPLINK_STATE_IDLE = 0 , COMMS_BULK_FILE_UPLINK_STATE_OPEN }
enum  COMMS_bulk_file_uplink_mode_enum_t { COMMS_BULK_FILE_UPLINK_MODE_TRUNCATE = 0 , COMMS_BULK_FILE_UPLINK_MODE_APPEND }

Functions

int32_t COMMS_bulk_file_uplink_open_file (const char *file_path, COMMS_bulk_file_uplink_mode_enum_t mode)
int32_t COMMS_bulk_file_uplink_write_bytes (const uint8_t bytes_to_write[], uint32_t bytes_to_write_length)
int32_t COMMS_bulk_file_uplink_seek (uint32_t new_position)
int32_t COMMS_bulk_file_uplink_close_file (void)

Enumeration Type Documentation

◆ COMMS_bulk_file_uplink_mode_enum_t

Enumerator
COMMS_BULK_FILE_UPLINK_MODE_TRUNCATE 
COMMS_BULK_FILE_UPLINK_MODE_APPEND 

◆ COMMS_bulk_file_uplink_state_enum_t

Enumerator
COMMS_BULK_FILE_UPLINK_STATE_IDLE 
COMMS_BULK_FILE_UPLINK_STATE_OPEN 

Function Documentation

◆ COMMS_bulk_file_uplink_close_file()

int32_t COMMS_bulk_file_uplink_close_file ( void )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ COMMS_bulk_file_uplink_open_file()

int32_t COMMS_bulk_file_uplink_open_file ( const char * file_path,
COMMS_bulk_file_uplink_mode_enum_t mode )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ COMMS_bulk_file_uplink_seek()

int32_t COMMS_bulk_file_uplink_seek ( uint32_t new_position)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ COMMS_bulk_file_uplink_write_bytes()

int32_t COMMS_bulk_file_uplink_write_bytes ( const uint8_t bytes_to_write[],
uint32_t bytes_to_write_length )
Here is the call graph for this function:
Here is the caller graph for this function: