Logo
Link Labs Interface Library
External host library for using Link Lab's modules.
top
Data Structures | Macros | Typedefs | Enumerations | Functions
ifc_struct_defs.h File Reference
#include <stdint.h>

Go to the source code of this file.

Data Structures

struct  llabs_dl_band_cfg
 
struct  llabs_network_info_t
 
struct  llabs_stats
 
struct  llabs_time
 
struct  llabs_time_info
 

Macros

#define DL_BAND_CFG_SIZE   (3 * 4 + 2)
 
#define NET_INFO_BUFF_SIZE   (30)
 
#define PACKED
 
#define STATS_SIZE   (10 * 4)
 
#define TIME_INFO_SIZE   (6 * 2 + 1)
 

Typedefs

typedef struct PACKED llabs_dl_band_cfg llabs_dl_band_cfg_t
 
typedef struct PACKED llabs_network_info_t llabs_network_info_t
 
typedef struct llabs_stats llabs_stats_t
 
typedef struct PACKED llabs_time_info llabs_time_info_t
 
typedef struct PACKED llabs_time llabs_time_t
 

Enumerations

enum  llabs_connect_status_t { LLABS_CONNECT_INITIAL = 0, LLABS_CONNECT_DISCONNECTED, LLABS_CONNECT_CONNECTED, LLABS_NUM_CONNECT_STATUSES }
 

Functions

void ll_dl_band_cfg_deserialize (const uint8_t buff[DL_BAND_CFG_SIZE], llabs_dl_band_cfg_t *dl_cfg)
 
uint16_t ll_dl_band_cfg_serialize (const llabs_dl_band_cfg_t *dl_cfg, uint8_t buff[DL_BAND_CFG_SIZE])
 
void ll_net_info_deserialize (const uint8_t buff[NET_INFO_BUFF_SIZE], llabs_network_info_t *net_info)
 
uint16_t ll_net_info_serialize (const llabs_network_info_t *net_info, uint8_t buff[NET_INFO_BUFF_SIZE])
 
void ll_stats_deserialize (const uint8_t buff[STATS_SIZE], llabs_stats_t *stats)
 
uint16_t ll_stats_serialize (const llabs_stats_t *stats, uint8_t buff[STATS_SIZE])
 
void ll_time_deserialize (const uint8_t buff[TIME_INFO_SIZE], llabs_time_info_t *time_info)
 
uint16_t ll_time_serialize (const llabs_time_info_t *time_info, uint8_t buff[TIME_INFO_SIZE])
 

Macro Definition Documentation

#define DL_BAND_CFG_SIZE   (3 * 4 + 2)
#define NET_INFO_BUFF_SIZE   (30)
#define PACKED
#define STATS_SIZE   (10 * 4)
#define TIME_INFO_SIZE   (6 * 2 + 1)