CSV File Format

CSV Overview

The RAPIDSEA CSV APIs provide functionalities to initialize, configure, and log data into CSV files. These APIs enable efficient management of CSV files within embedded systems, offering flexibility in file creation, header configuration, and data logging.

Usage

  1. Create a CSV file using the structure described above.

  2. Ensure all required fields are populated correctly.

  3. Load the CSV file into the application layer using the appropriate API or configuration loader.

  4. Any errors in the file will be reported with corresponding error codes.

Application Interface

The following APIs are provided to manage CSV files:

CSV API Functions

Function

Description

rs_csv_init

Initializes the CSV logging system using the provided configuration.

rs_csv_set_file_info

Sets the file path and name for the CSV file.

rs_csv_log_data

Logs a chunk of data into the CSV file in CSV format.

Error Code

  • Every API’s for the csv returns some success or failure values. Please refer below section,

CSV Header Details

Documentation from the relevant header as follows:

Warning

doxygenfile: Cannot find file “rs_csv.h