Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of PsiSwarmLibrary by
serial.h
00001 /* University of York Robotics Laboratory PsiSwarm Library: Serial Control Header File 00002 * 00003 * File: serial.h 00004 * 00005 * (C) Dept. Electronics & Computer Science, University of York 00006 * James Hilder, Alan Millard, Alexander Horsfield, Homero Elizondo, Jon Timmis 00007 * 00008 * PsiSwarm Library Version: 0.41 00009 * 00010 * March 2016 00011 * 00012 * 00013 */ 00014 00015 00016 #ifndef SERIAL_H 00017 #define SERIAL_H 00018 00019 void handle_user_serial_message(char * message, char length, char interface); 00020 00021 void IF_start_file_transfer_mode(void); 00022 void IF_end_file_transfer_mode(void); 00023 void IF_file_transfer_timeout(void); 00024 void IF_handle_file_transfer_serial_message(char * message, char length, char interface); 00025 void IF_handle_user_serial_message(char * message, char length, char interface); 00026 void IF_handle_command_serial_message(char message [3], char interface); 00027 void IF_setup_serial_interfaces(void); 00028 void IF_pc_rx_callback(void); 00029 void IF_bt_rx_callback(void); 00030 00031 char * IF_nibble_to_binary_char(char in); 00032 char * IF_char_to_binary_char(char in); 00033 float IF_decode_unsigned_float(char byte0, char byte1); 00034 float IF_decode_float(char byte0, char byte1); 00035 float IF_decode_float(char byte0); 00036 float IF_decode_unsigned_float(char byte0); 00037 void IF_set_filename(char * filename_in); 00038 unsigned short IF_calculateCRC16(int file_length); 00039 00040 00041 #endif
Generated on Sat Jul 16 2022 05:17:35 by
1.7.2
