CLEON
Version 1
Cloud-Offloaded GPS Receiver
|
USB related functions. More...
#include "cleon_conf.h"
#include "app_define.h"
#include "sys_define.h"
#include "hal_define.h"
#include "fs_define.h"
Go to the source code of this file.
Functions | |
void | SYS_USB_Init () |
Initializing USB. | |
void | SYS_USB_SendACK (unsigned char ucCommand) |
Sending USB frame ACK. | |
int | SYS_USB_Printf (char *format,...) |
Mimic the standard 'printf' with USB as output device. | |
void | SYS_USB_TransmitSingleByte (unsigned char ucData) |
Transmit a byte vis USB. | |
void | SYS_USB_ReceiveFrame (unsigned char ucData) |
Receiving a bayte and test whether correct frame has been received. | |
unsigned char | SYS_USB_BuildCRC (usb_frame_u *uniUSBFrame) |
Building CRC out of USB frame. | |
Variables | |
cleon_header_u | uniCLEONHeader |
cleon_gps_data_u | uniCLEONGPSData |
cleon_sensor_data_u | uniCLEONSensorData |
bool | bFLAG_USBFrameReceived = _CLEAR_ |
bool | bFLAG_USBConnected = _CLEAR_ |
usb_frame_u | uniUSBRecvFrame = {0} |
usb_frame_u | uniUSBSendFrame = {0} |
unsigned char | ucUSBFrameByteCount = 0 |
USB related functions.
Definition in file sys_usb.c.
unsigned char SYS_USB_BuildCRC | ( | usb_frame_u * | uniUSBFrame | ) |
Building CRC out of USB frame.
void |
Definition at line 215 of file sys_usb.c.
void SYS_USB_Init | ( | void | ) |
int SYS_USB_Printf | ( | char * | format, |
... | |||
) |
Mimic the standard 'printf' with USB as output device.
- Sending a byte (stream) to USB
data | - a byte to be sent to USB |
Definition at line 91 of file sys_usb.c.
void SYS_USB_ReceiveFrame | ( | unsigned char | ucData | ) |
Receiving a bayte and test whether correct frame has been received.
ucData | - recived single byte from USB |
Definition at line 138 of file sys_usb.c.
void SYS_USB_SendACK | ( | unsigned char | ucCommand | ) |
void SYS_USB_TransmitSingleByte | ( | unsigned char | ucData | ) |
cleon_gps_data_u uniCLEONGPSData |
Definition at line 14 of file sys_init.c.
cleon_header_u uniCLEONHeader |
Definition at line 13 of file sys_init.c.
cleon_sensor_data_u uniCLEONSensorData |
Definition at line 15 of file sys_init.c.
usb_frame_u uniUSBRecvFrame = {0} |
usb_frame_u uniUSBSendFrame = {0} |