/*1This program is free software: you can redistribute it and/or modify2it under the terms of the GNU General Public License as published by3the Free Software Foundation, either version 3 of the License, or4(at your option) any later version.56This program is distributed in the hope that it will be useful,7but WITHOUT ANY WARRANTY; without even the implied warranty of8MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the9GNU General Public License for more details.1011You should have received a copy of the GNU General Public License12along with this program. If not, see <http://www.gnu.org/licenses/>.13*/1415#include <AP_HAL/AP_HAL.h>1617/*18formatted print of NMEA message to an allocated string, with19checksum appended20*/21char *nmea_vaprintf(const char *fmt, va_list ap);2223/*24formatted print of NMEA message to a uart, with checksum appended25*/26bool nmea_printf(AP_HAL::UARTDriver *uart, const char *fmt, ...) FMT_PRINTF(2,3);2728/*29formatted print of NMEA message to a buffer, with checksum appended.30Returns the length of the string filled into buf. If the NMEA string does not fit in the buffer, returns 031*/32uint16_t nmea_printf_buffer(char* buf, const uint16_t buf_max_len, const char *fmt, ...);33343536