lriot  2.1.0.0
lr1110_lr_fhss.h
Go to the documentation of this file.
1 
35 #ifndef LR1110_LR_FHSS_H
36 #define LR1110_LR_FHSS_H
37 
38 #ifdef __cplusplus
39 extern "C" {
40 #endif
41 
42 /*
43  * -----------------------------------------------------------------------------
44  * --- DEPENDENCIES ------------------------------------------------------------
45  */
46 
47 #include "lriot.h"
49 #include "common/lr1110_types.h"
50 
51 /*
52  * -----------------------------------------------------------------------------
53  * --- PUBLIC MACROS -----------------------------------------------------------
54  */
55 
56 /*
57  * -----------------------------------------------------------------------------
58  * --- PUBLIC CONSTANTS --------------------------------------------------------
59  */
60 
64 #define LR_FHSS_SYNC_WORD_BYTES ( 4 )
65 
66 /*
67  * -----------------------------------------------------------------------------
68  * --- PUBLIC TYPES ------------------------------------------------------------
69  */
70 
71 /*
72  * -----------------------------------------------------------------------------
73  * --- PUBLIC FUNCTIONS PROTOTYPES ---------------------------------------------
74  */
75 
84 
102  uint16_t hop_sequence_id, uint8_t* payload, uint8_t payload_length );
103 
112 uint32_t lr1110_lr_fhss_get_time_on_air_in_ms( lr1110_lr_fhss_params_t* params, uint16_t payload_length );
113 
122 
123 #ifdef __cplusplus
124 }
125 #endif
126 
127 #endif // LR1110_LR_FHSS_H
128 
129 /* --- EOF ------------------------------------------------------------------ */
lr1110_lr_fhss_params_t
LR FHSS parameter structure.
Definition: lr1110_lr_fhss_types.h:54
lriot_t
LR IoT Click context object.
Definition: lriot.h:273
lr1110_lr_fhss_get_hop_sequence_count
uint32_t lr1110_lr_fhss_get_hop_sequence_count(lr1110_lr_fhss_params_t *lr_fhss_params)
Return the number of hop sequences available using the given parameters.
lriot.h
This file contains API for LR IoT Click Driver.
lr1110_lr_fhss_types.h
LR_FHSS types definition for LR1110.
lr1110_lr_fhss_init
err_t lr1110_lr_fhss_init(lriot_t *ctx)
Initialize the LR_FHSS.
lr1110_lr_fhss_get_time_on_air_in_ms
uint32_t lr1110_lr_fhss_get_time_on_air_in_ms(lr1110_lr_fhss_params_t *params, uint16_t payload_length)
Get the time on air in ms for LR-FHSS transmission.
lr1110_types.h
Type definitions for LR1110.
lr1110_lr_fhss_build_frame
err_t lr1110_lr_fhss_build_frame(lriot_t *ctx, lr1110_lr_fhss_params_t *lr_fhss_params, uint16_t hop_sequence_id, uint8_t *payload, uint8_t payload_length)
Configure a payload to be sent with LR_FHSS.