Redistribution and use in source and binary forms, with or without modification, are permitted provided the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Definition in file sem.h.
#include "basictypes.h"
Go to the source code of this file.
Data Structures | |
struct | SEM_structAlmanac |
A limited set of satellite orbit parameters that is used to calculate GPS satellite positions and velocities. In the ephemeris structure below, the parameters for computing satellite clock corrections are also included. More... | |
Functions | |
BOOL | SEM_ReadAlmanacDataFromFile (const char *semFilePath, SEM_structAlmanac *alm, unsigned char max_to_read, unsigned char *number_read) |
BOOL | SEM_WriteAlmanacDataToFile (const char *semFilePath, SEM_structAlmanac *alm, unsigned char number_to_write) |
BOOL | SEM_WriteSingleAlmanacElementToBuffer (SEM_structAlmanac alm, char *buffer, unsigned short bufferSize) |
BOOL SEM_ReadAlmanacDataFromFile | ( | const char * | semFilePath, | |
SEM_structAlmanac * | alm, | |||
unsigned char | max_to_read, | |||
unsigned char * | number_read | |||
) |
Load an array of SEM format almanac structs from the ASCII file path specified.
semFilePath | path to the input SEM ASCII file |
alm | pointer to an array of SEM almanac structs |
max_to_read | length of the array |
number_read | number of almanac items read |
BOOL SEM_WriteAlmanacDataToFile | ( | const char * | semFilePath, | |
SEM_structAlmanac * | alm, | |||
unsigned char | number_to_write | |||
) |
Write an array of SEM format almanac structs to the ASCII file path specified.
semFilePath | path to the output SEM ASCII file |
alm | pointer to an array of SEM almanac structs |
number_to_write | length of the array |
BOOL SEM_WriteSingleAlmanacElementToBuffer | ( | SEM_structAlmanac | alm, | |
char * | buffer, | |||
unsigned short | bufferSize | |||
) |
Print a SEM format almanac struct to buffer supplied.
alm | SEM almanac struct |
buffer | buffer to write the SEM struct information |
bufferSize | size of the buffer, must be greater than 1024 bytes |