CTS-SAT-1-OBC-Firmware
Loading...
Searching...
No Matches
bulk_file_uplink.c File Reference
#include "comms_drivers/bulk_file_uplink.h"
#include "littlefs/littlefs_helper.h"
#include "log/log.h"
#include <string.h>
#include <stdio.h>
#include <ctype.h>
Include dependency graph for bulk_file_uplink.c:

Macros

#define COMMS_BULK_FILE_UPLINK_MAX_WRITE_BYTES   256

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)

Variables

lfs_file_t COMMS_bulk_file_uplink_file
char COMMS_bulk_file_uplink_file_path [LFS_MAX_PATH_LENGTH]
COMMS_bulk_file_uplink_state_enum_t COMMS_bulk_file_uplink_state

Macro Definition Documentation

◆ COMMS_BULK_FILE_UPLINK_MAX_WRITE_BYTES

#define COMMS_BULK_FILE_UPLINK_MAX_WRITE_BYTES   256

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:

Variable Documentation

◆ COMMS_bulk_file_uplink_file

lfs_file_t COMMS_bulk_file_uplink_file

◆ COMMS_bulk_file_uplink_file_path

char COMMS_bulk_file_uplink_file_path[LFS_MAX_PATH_LENGTH]

◆ COMMS_bulk_file_uplink_state

COMMS_bulk_file_uplink_state_enum_t COMMS_bulk_file_uplink_state
Initial value:
=