#include <stdint.h>
Go to the source code of this file.
|
uint8_t | CAM_change_baudrate (uint32_t bitrate) |
| Changes the baudrate of the camera by sending it a UART command, and then changing the baudrate of the camera UART port.
|
|
uint8_t | CAM_setup () |
| Set up the camera by powering on and changing the baudrate to 230400.
|
|
uint8_t | CAM_test () |
| Send the 't' test command to the camera, and check if the response is valid.
|
|
◆ CAM_change_baudrate()
uint8_t CAM_change_baudrate |
( |
uint32_t | new_baud_rate | ) |
|
Changes the baudrate of the camera by sending it a UART command, and then changing the baudrate of the camera UART port.
- Parameters
-
new_baud_rate | The new baud rate to set the camera to. Ranges from 1200 to 921600. |
- Returns
- 0 if successful, 1 if an invalid baud rate was provided, >=2 if an error occurred
- Note
- This function does not validate that the camera is connected or powered on.
◆ CAM_setup()
Set up the camera by powering on and changing the baudrate to 230400.
- Returns
- 0 on success. The error code from the
CAM_change_baudrate
function, or >100 if an EPS error occurred.
- Note
- Does not perform a self-test.
◆ CAM_test()
Send the 't' test command to the camera, and check if the response is valid.
- Returns
- 0 if successful, >0 if an error occurred.
- Note
- You should call
CAM_setup
before calling this function.