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

Go to the source code of this file.

Macros

#define CAM_SENTENCE_LEN   67
 
#define CAM_SENTENCES_PER_HALF_CALLBACK   250
 
#define CAM_BYTES_TO_RECEIVE_PER_HALF_CALLBACK   ((CAM_SENTENCE_LEN) * (CAM_SENTENCES_PER_HALF_CALLBACK))
 

Typedefs

typedef enum CAM_capture_status_enum CAM_capture_status_enum
 

Enumerations

enum  CAM_capture_status_enum {
  CAM_CAPTURE_STATUS_TRANSMIT_SUCCESS , CAM_CAPTURE_STATUS_WRONG_INPUT , CAM_CAPTURE_STATUS_LFS_NOT_MOUNTED , CAM_CAPTURE_STATUS_LFS_FAILED_OPENING_CREATING_FILE ,
  CAM_CAPTURE_STATUS_LFS_FAILED_WRITING_HEADER , CAM_CAPTURE_STATUS_FAILED_TRANSMITTING_LIGHTING_MODE , CAM_CAPTURE_STATUS_LFS_FAILED_CLOSING_FILE , CAM_CAPTURE_STATUS_CAPTURE_FAILURE
}
 

Functions

void CAM_repeated_error_log_message ()
 
CAM_capture_status_enum CAM_capture_image (char filename_str[], char lighting_mode)
 Capture an image, writing to a file in LFS.
 

Macro Definition Documentation

◆ CAM_BYTES_TO_RECEIVE_PER_HALF_CALLBACK

#define CAM_BYTES_TO_RECEIVE_PER_HALF_CALLBACK   ((CAM_SENTENCE_LEN) * (CAM_SENTENCES_PER_HALF_CALLBACK))

◆ CAM_SENTENCE_LEN

#define CAM_SENTENCE_LEN   67

◆ CAM_SENTENCES_PER_HALF_CALLBACK

#define CAM_SENTENCES_PER_HALF_CALLBACK   250

Typedef Documentation

◆ CAM_capture_status_enum

Enumeration Type Documentation

◆ CAM_capture_status_enum

Enumerator
CAM_CAPTURE_STATUS_TRANSMIT_SUCCESS 
CAM_CAPTURE_STATUS_WRONG_INPUT 
CAM_CAPTURE_STATUS_LFS_NOT_MOUNTED 
CAM_CAPTURE_STATUS_LFS_FAILED_OPENING_CREATING_FILE 
CAM_CAPTURE_STATUS_LFS_FAILED_WRITING_HEADER 
CAM_CAPTURE_STATUS_FAILED_TRANSMITTING_LIGHTING_MODE 
CAM_CAPTURE_STATUS_LFS_FAILED_CLOSING_FILE 
CAM_CAPTURE_STATUS_CAPTURE_FAILURE 

Function Documentation

◆ CAM_capture_image()

CAM_capture_status_enum CAM_capture_image ( char filename_str[],
char lighting_mode )

Capture an image, writing to a file in LFS.

Parameters
filename_strThe name of the file to write to.
lighting_modeShould be a lower-case char d - daylight ambient light m - medium ambient light n - night ambient light s - solar sail contrast and light
Returns
0: Successfully captured image, more than 0, error occurred
Note
This function does not validate that the camera is connected or powered on.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ CAM_repeated_error_log_message()

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