lriot  2.1.0.0
lr1110_modem_lorawan.h
Go to the documentation of this file.
1 
32 #ifndef LR1110_MODEM_LORAWAN_H
33 #define LR1110_MODEM_LORAWAN_H
34 
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
38 
39 /*
40  * -----------------------------------------------------------------------------
41  * --- DEPENDENCIES ------------------------------------------------------------
42  */
43 
44 #include <stdbool.h>
45 #include <stdint.h>
47 #include "lriot.h"
48 
49 /*
50  * -----------------------------------------------------------------------------
51  * --- PUBLIC MACROS -----------------------------------------------------------
52  */
53 
54 /*
55  * -----------------------------------------------------------------------------
56  * --- PUBLIC CONSTANTS --------------------------------------------------------
57  */
58 
59 /*
60  * -----------------------------------------------------------------------------
61  * --- PUBLIC FUNCTIONS PROTOTYPES ---------------------------------------------
62  */
63 
75 
86 
96 
105 
115 err_t lr1110_modem_get_charge( lriot_t *ctx, uint32_t* charge );
116 
126 err_t lr1110_modem_get_tx_power_offset( lriot_t *ctx, int8_t* tx_power_offset );
127 
137 err_t lr1110_modem_set_tx_power_offset( lriot_t *ctx, int8_t tx_power_offset );
138 
150 
159 
173 err_t lr1110_modem_test_tx_single( lriot_t *ctx, uint32_t frequency, int8_t tx_power,
175  lr1110_modem_tst_mode_cr_t cr, uint8_t payload_length );
176 
190 err_t lr1110_modem_test_tx_cont( lriot_t *ctx, uint32_t frequency, int8_t tx_power,
192  lr1110_modem_tst_mode_cr_t cr, uint8_t payload_length );
193 
203 err_t lr1110_modem_test_tx_cw( lriot_t *ctx, uint32_t frequency, int8_t tx_power );
204 
216 err_t lr1110_modem_test_rx_cont( lriot_t *ctx, uint32_t frequency, lr1110_modem_tst_mode_sf_t sf,
218 
229 err_t lr1110_modem_test_read_packet_counter_rx_cont( lriot_t *ctx, uint32_t* rx_packet_counter );
230 
241 err_t lr1110_modem_test_rssi_subghz( lriot_t *ctx, uint32_t frequency, uint16_t time_ms, lr1110_modem_tst_mode_bw_t bw );
242 
251 
260 
275 err_t lr1110_modem_test_tx_single_preamble( lriot_t *ctx, uint32_t frequency, int8_t tx_power, lr1110_modem_tst_mode_sf_t sf,
277  uint8_t payload_length, uint16_t preamble_length );
278 
287 err_t lr1110_modem_test_read_rssi( lriot_t *ctx, int8_t* rssi );
288 
301 err_t lr1110_modem_test_rssi_2g4( lriot_t *ctx, uint8_t channel, uint16_t time_ms, lr1110_modem_tst_mode_bw_t bw );
302 
316  uint16_t time_ms, lr1110_modem_tst_mode_bw_t bw );
317 
330 err_t lr1110_modem_get_gps_time( lriot_t *ctx, uint32_t* time );
331 
341 
352 err_t lr1110_modem_set_alarm_timer( lriot_t *ctx, uint32_t seconds );
353 
362 err_t lr1110_modem_get_pin( lriot_t *ctx, uint32_t* pin );
363 
374 
386 
398 
408 
418 
429 
439 
452 
462 
473 
483 err_t lr1110_modem_list_regions( lriot_t *ctx, uint8_t *region_codes, uint8_t* region_codes_size );
484 
494 
506 err_t lr1110_modem_set_adr_profile( lriot_t *ctx, lr1110_modem_adr_profiles_t adr_profile, uint8_t* adr_custom_list );
507 
516 err_t lr1110_modem_get_dm_port( lriot_t *ctx, uint8_t* port );
517 
527 err_t lr1110_modem_set_dm_port( lriot_t *ctx, uint8_t port );
528 
539 err_t lr1110_modem_get_dm_info_interval( lriot_t *ctx, uint8_t* format, uint8_t* interval );
540 
556 
566 
578 
590 
606 err_t lr1110_modem_set_app_status( lriot_t *ctx, uint8_t* app_status );
607 
618 
628 
641 
652 err_t lr1110_modem_get_next_tx_max_payload( lriot_t *ctx, uint8_t* tx_max_payload );
653 
671 err_t lr1110_modem_request_tx( lriot_t *ctx, uint8_t port, lr1110_modem_uplink_type_t uplink_type,
672  uint8_t* data_buf, uint8_t length );
673 
690 err_t lr1110_modem_emergency_tx( lriot_t *ctx, uint8_t port, lr1110_modem_uplink_type_t uplink_type,
691  uint8_t* data_buf, uint8_t length );
692 
705 err_t lr1110_modem_upload_init( lriot_t *ctx, uint8_t port, lr1110_modem_encryption_mode_t encryption_mode,
706  uint16_t size, uint16_t interval );
707 
720 err_t lr1110_modem_upload_data( lriot_t *ctx, uint8_t* data_buf, uint8_t length );
721 
731 err_t lr1110_modem_upload_start( lriot_t *ctx, uint32_t crc );
732 
743 err_t lr1110_modem_stream_init( lriot_t *ctx, uint8_t port, lr1110_modem_encryption_mode_t encryption_mode );
744 
757 err_t lr1110_modem_send_stream_data( lriot_t *ctx, uint8_t port, uint8_t* record, uint8_t length );
758 
770 err_t lr1110_modem_stream_status( lriot_t *ctx, uint8_t port, lr1110_modem_stream_status_t* stream_status );
771 
781 err_t lr1110_modem_set_gps_time( lriot_t *ctx, uint32_t gps_time );
782 
791 
801 
810 err_t lr1110_modem_set_alc_sync_port( lriot_t *ctx, uint8_t port );
811 
820 err_t lr1110_modem_get_alc_sync_port( lriot_t *ctx, uint8_t* port );
821 
831 
841 
855 err_t lr1110_modem_set_connection_timeout( lriot_t *ctx, uint16_t nb_uplink_mobile_static, uint16_t nb_uplink_reset );
856 
867 err_t lr1110_modem_get_connection_timeout( lriot_t *ctx, uint16_t* nb_uplink_mobile_static, uint16_t* nb_uplink_reset );
868 
879 err_t lr1110_modem_get_connection_timeout_status( lriot_t *ctx, uint16_t* nb_uplink_mobile_static, uint16_t* nb_uplink_reset );
880 
890 
900 
910 
920 
935 err_t lr1110_modem_get_duty_cycle_status( lriot_t *ctx, int32_t* duty_cycle );
936 
946 
956 
966 
975 err_t lr1110_modem_get_available_data_rate( lriot_t *ctx, uint16_t* available_data_rate );
976 
989 
1002 
1012 
1022 
1034 err_t lr1110_modem_activate_lbt( lriot_t *ctx, lr1110_modem_lbt_mode_t enable, int16_t threshold,
1035  uint32_t duration, uint32_t bandwidth );
1036 
1045 err_t lr1110_modem_set_nb_trans( lriot_t *ctx, uint8_t nb_trans );
1046 
1055 err_t lr1110_modem_get_nb_trans( lriot_t *ctx, uint8_t* nb_trans );
1056 
1065 err_t lr1110_modem_set_stream_redundancy_rate( lriot_t *ctx, uint8_t stream_redundancy_rate );
1066 
1075 err_t lr1110_modem_get_stream_redundancy_rate( lriot_t *ctx, uint8_t* stream_redundancy_rate );
1076 
1077 
1087 err_t lr1110_modem_set_crystal_error( lriot_t *ctx, uint32_t crystal_error );
1088 
1097 err_t lr1110_modem_get_crystal_error( lriot_t *ctx, uint32_t* crystal_error );
1098 
1099 
1100 #ifdef __cplusplus
1101 }
1102 #endif
1103 
1104 #endif // LR1110_MODEM_LORAWAN_H
1105 
1106 /* --- EOF ------------------------------------------------------------------ */
lr1110_modem_get_gps_time
err_t lr1110_modem_get_gps_time(lriot_t *ctx, uint32_t *time)
Query the current GPS time. The application layer clock synchronization protocol is used to link the ...
lr1110_modem_get_alc_sync_mode
err_t lr1110_modem_get_alc_sync_mode(lriot_t *ctx, lr1110_modem_alc_sync_mode_t *mode)
Get the mode for application layer clock synchronization service.
lr1110_modem_lbt_mode_t
lr1110_modem_lbt_mode_t
Listen Before Talk (LBT) activation type.
Definition: lr1110_modem_lorawan_types.h:467
lr1110_modem_tst_mode_constellation_t
lr1110_modem_tst_mode_constellation_t
Coding rate for test mode.
Definition: lr1110_modem_lorawan_types.h:295
lr1110_modem_activate_duty_cycle
err_t lr1110_modem_activate_duty_cycle(lriot_t *ctx, lr1110_modem_duty_cycle_t duty_cycle)
Activate/deactivate Duty cycle.
lr1110_modem_set_connection_timeout
err_t lr1110_modem_set_connection_timeout(lriot_t *ctx, uint16_t nb_uplink_mobile_static, uint16_t nb_uplink_reset)
Set the number of uplink without ack from network before Modem changes it's ADR or resets.
lr1110_modem_request_tx
err_t lr1110_modem_request_tx(lriot_t *ctx, uint8_t port, lr1110_modem_uplink_type_t uplink_type, uint8_t *data_buf, uint8_t length)
This command requests sending the given data on the specified port as an unconfirmed (0x00) or confir...
lr1110_modem_set_output_power_config
err_t lr1110_modem_set_output_power_config(lriot_t *ctx, lr1110_modem_output_power_config_list_t output_power_config)
This command sets 6 blocks (at most 6 dedicated power levels) of Tx output power configurations: expe...
lr1110_modem_set_alc_sync_port
err_t lr1110_modem_set_alc_sync_port(lriot_t *ctx, uint8_t port)
Set the port for application layer clock synchronization.
lr1110_modem_test_radio_rst
err_t lr1110_modem_test_radio_rst(lriot_t *ctx)
Reset the LR1110 radio.
lr1110_modem_get_pin
err_t lr1110_modem_get_pin(lriot_t *ctx, uint32_t *pin)
This command returns the device registration PIN.
lr1110_modem_certification_mode_t
lr1110_modem_certification_mode_t
LoRaWAN Duty Cycle activation type.
Definition: lr1110_modem_lorawan_types.h:369
lr1110_modem_set_nb_trans
err_t lr1110_modem_set_nb_trans(lriot_t *ctx, uint8_t nb_trans)
Set the LoRaWAN number of retransmission.
lr1110_modem_get_class
err_t lr1110_modem_get_class(lriot_t *ctx, lr1110_modem_classes_t *modem_class)
This command gets the LoRaWAN device class.
lr1110_modem_get_available_data_rate
err_t lr1110_modem_get_available_data_rate(lriot_t *ctx, uint16_t *available_data_rate)
Get the available data rate mask. One bit indicates one data rate. Bit n = 1 mean Data Rate n is avai...
lr1110_modem_test_tx_single_preamble
err_t lr1110_modem_test_tx_single_preamble(lriot_t *ctx, uint32_t frequency, int8_t tx_power, lr1110_modem_tst_mode_sf_t sf, lr1110_modem_tst_mode_bw_t bw, lr1110_modem_tst_mode_cr_t cr, uint8_t payload_length, uint16_t preamble_length)
Transmit a single packet with the number of preamble configurable.
lriot_t
LR IoT Click context object.
Definition: lriot.h:259
lr1110_modem_set_join_eui
err_t lr1110_modem_set_join_eui(lriot_t *ctx, lr1110_modem_join_eui_t join_eui)
This command sets the Join EUI.
lr1110_modem_select_charge_uplink
err_t lr1110_modem_select_charge_uplink(lriot_t *ctx, lr1110_modem_charge_type_t charge_type)
Select which charge counter to send.
lr1110_modem_set_region
err_t lr1110_modem_set_region(lriot_t *ctx, lr1110_modem_regions_t region)
This command sets the regulatory region. Additionally this command resets the ADR profile to Network ...
lr1110_modem_set_adr_profile
err_t lr1110_modem_set_adr_profile(lriot_t *ctx, lr1110_modem_adr_profiles_t adr_profile, uint8_t *adr_custom_list)
This command sets the ADR profile and parameters.
lr1110_modem_get_event
err_t lr1110_modem_get_event(lriot_t *ctx, lr1110_modem_event_fields_t *event_fields)
This command can be used to retrieve pending events from the modem. Pending events are indicated by t...
lr1110_modem_duty_cycle_t
lr1110_modem_duty_cycle_t
LoRaWAN Duty Cycle activation type.
Definition: lr1110_modem_lorawan_types.h:360
lr1110_modem_lorawan_types.h
Modem lorawan types for LR1110.
lr1110_modem_leave_network
err_t lr1110_modem_leave_network(lriot_t *ctx)
This command leaves the network if already joined, or cancels an ongoing join process....
lr1110_modem_upload_data
err_t lr1110_modem_upload_data(lriot_t *ctx, uint8_t *data_buf, uint8_t length)
This command can be used to repeatedly set file data to be uploaded. The file data needs to be split ...
lr1110_modem_get_nb_trans
err_t lr1110_modem_get_nb_trans(lriot_t *ctx, uint8_t *nb_trans)
Get the LoRaWAN number of retransmission.
lr1110_modem_adr_profiles_t
lr1110_modem_adr_profiles_t
Adaptative Data Rate profiles type.
Definition: lr1110_modem_lorawan_types.h:169
lr1110_modem_get_next_tx_max_payload
err_t lr1110_modem_get_next_tx_max_payload(lriot_t *ctx, uint8_t *tx_max_payload)
This command returns the maximum application payload size possible according to the LoRaWAN regional ...
lr1110_modem_write_user_defined_charge_counter
err_t lr1110_modem_write_user_defined_charge_counter(lriot_t *ctx, uint16_t charge)
Write a charge value to user defined charger counter.
lr1110_modem_get_connection_timeout
err_t lr1110_modem_get_connection_timeout(lriot_t *ctx, uint16_t *nb_uplink_mobile_static, uint16_t *nb_uplink_reset)
Get the number of uplink without ack from network before Modem changes it's ADR or resets.
lr1110_modem_lorawan_state_t
lr1110_modem_lorawan_state_t
LoRaWAN state values.
Definition: lr1110_modem_lorawan_types.h:313
lr1110_modem_set_dev_eui
err_t lr1110_modem_set_dev_eui(lriot_t *ctx, lr1110_modem_dev_eui_t dev_eui)
This command sets the DeviceEUI.
lr1110_modem_charge_type_t
lr1110_modem_charge_type_t
Modem charge type.
Definition: lr1110_modem_lorawan_types.h:351
lr1110_modem_set_network_type
err_t lr1110_modem_set_network_type(lriot_t *ctx, lr1110_modem_network_type_t network_type)
Set the LoRaWAN network type.
lr1110_modem_status_t
lr1110_modem_status_t
Modem status bits.
Definition: lr1110_modem_lorawan_types.h:138
lr1110_modem_get_dev_eui
err_t lr1110_modem_get_dev_eui(lriot_t *ctx, lr1110_modem_dev_eui_t dev_eui)
This command returns the DeviceEUI.
lr1110_modem_stream_init
err_t lr1110_modem_stream_init(lriot_t *ctx, uint8_t port, lr1110_modem_encryption_mode_t encryption_mode)
This command initializes redundant data streaming on a specific port. The StreamInit command can only...
lr1110_modem_regions_t
lr1110_modem_regions_t
LoRaWAN region type.
Definition: lr1110_modem_lorawan_types.h:152
lr1110_modem_activate_lbt
err_t lr1110_modem_activate_lbt(lriot_t *ctx, lr1110_modem_lbt_mode_t enable, int16_t threshold, uint32_t duration, uint32_t bandwidth)
Activate the listen before talk.
lr1110_modem_reporting_interval_format_t
lr1110_modem_reporting_interval_format_t
DM reporting internal format.
Definition: lr1110_modem_lorawan_types.h:183
lr1110_modem_version_t
LR1110 modem version structure.
Definition: lr1110_modem_lorawan_types.h:487
lr1110_modem_test_rssi_subghz
err_t lr1110_modem_test_rssi_subghz(lriot_t *ctx, uint32_t frequency, uint16_t time_ms, lr1110_modem_tst_mode_bw_t bw)
Continuously receive packets on Sub-GHz radio path.
lr1110_modem_list_regions
err_t lr1110_modem_list_regions(lriot_t *ctx, uint8_t *region_codes, uint8_t *region_codes_size)
This command returns the regulatory regions supported by the LR1110 modem.
lr1110_modem_set_gps_time
err_t lr1110_modem_set_gps_time(lriot_t *ctx, uint32_t gps_time)
This commands sends the GPS time to LR1110 Modem, The time format is 4 bytes, big endian....
lriot.h
This file contains API for LR IoT Click Driver.
lr1110_modem_get_dm_info_field
err_t lr1110_modem_get_dm_info_field(lriot_t *ctx, lr1110_modem_dm_info_fields_t *dm_info_fields)
This command lists the info fields to be included in the periodic DM status messages.
lr1110_modem_test_read_rssi
err_t lr1110_modem_test_read_rssi(lriot_t *ctx, int8_t *rssi)
Read RSSI after a Sub Gig / 2.4 Ghz / GNSS test rssi command.
lr1110_modem_tst_mode_cr_t
lr1110_modem_tst_mode_cr_t
Coding rate for test mode.
Definition: lr1110_modem_lorawan_types.h:284
lr1110_modem_read_user_defined_charge_counter
err_t lr1110_modem_read_user_defined_charge_counter(lriot_t *ctx, uint16_t *charge)
Read a charge value to user defined charger counter.
lr1110_modem_suspend_t
lr1110_modem_suspend_t
Modem suspend type.
Definition: lr1110_modem_lorawan_types.h:405
lr1110_modem_test_read_packet_counter_rx_cont
err_t lr1110_modem_test_read_packet_counter_rx_cont(lriot_t *ctx, uint32_t *rx_packet_counter)
Read the packet counter received during continuously receive packets test.
lr1110_modem_set_alarm_timer
err_t lr1110_modem_set_alarm_timer(lriot_t *ctx, uint32_t seconds)
This command sets an application alarm timer (in seconds). When the timer has expired an Alarm event ...
lr1110_modem_get_crystal_error
err_t lr1110_modem_get_crystal_error(lriot_t *ctx, uint32_t *crystal_error)
Get the Crystal error.
lr1110_modem_get_version
err_t lr1110_modem_get_version(lriot_t *ctx, lr1110_modem_version_t *version)
This command returns the version of the bootloader and the version of the installed firmware plus the...
lr1110_modem_app_key_t
uint8_t lr1110_modem_app_key_t[LR1110_MODEM_APP_KEY_LENGTH]
Application key type.
Definition: lr1110_modem_lorawan_types.h:558
lr1110_modem_reset
err_t lr1110_modem_reset(lriot_t *ctx)
This command performs a reset of the LR1110 modem. All transient state (including session information...
lr1110_modem_upload_init
err_t lr1110_modem_upload_init(lriot_t *ctx, uint8_t port, lr1110_modem_encryption_mode_t encryption_mode, uint16_t size, uint16_t interval)
This command prepares a fragmented file upload. It specifies the port for the subsequent upload,...
lr1110_modem_derive_keys
err_t lr1110_modem_derive_keys(lriot_t *ctx)
Use the previously set of JoinEUI/DevEUI to derive the app keys used in the Semtech join server.
lr1110_modem_test_tx_single
err_t lr1110_modem_test_tx_single(lriot_t *ctx, uint32_t frequency, int8_t tx_power, lr1110_modem_tst_mode_sf_t sf, lr1110_modem_tst_mode_bw_t bw, lr1110_modem_tst_mode_cr_t cr, uint8_t payload_length)
Transmit a single packet.
lr1110_modem_encryption_mode_t
lr1110_modem_encryption_mode_t
Encryption mode values.
Definition: lr1110_modem_lorawan_types.h:304
lr1110_modem_chip_eui_t
uint8_t lr1110_modem_chip_eui_t[LR1110_MODEM_CHIP_EUI_LENGTH]
Chip EUI type.
Definition: lr1110_modem_lorawan_types.h:543
lr1110_modem_get_lorawan_state
err_t lr1110_modem_get_lorawan_state(lriot_t *ctx, lr1110_modem_lorawan_state_t *lorawan_state)
Returns the LoRaWAN state Idle or Not Idle.
lr1110_modem_get_connection_timeout_status
err_t lr1110_modem_get_connection_timeout_status(lriot_t *ctx, uint16_t *nb_uplink_mobile_static, uint16_t *nb_uplink_reset)
Get the status of the number of uplink without ack from network before Modem changes it's ADR or rese...
lr1110_modem_get_region
err_t lr1110_modem_get_region(lriot_t *ctx, lr1110_modem_regions_t *region)
This command returns the regulatory region.
lr1110_modem_tst_mode_sf_t
lr1110_modem_tst_mode_sf_t
Spreading factor for test mode.
Definition: lr1110_modem_lorawan_types.h:257
lr1110_modem_stream_status
err_t lr1110_modem_stream_status(lriot_t *ctx, uint8_t port, lr1110_modem_stream_status_t *stream_status)
This command queries the status of the data streaming buffer on the specified port....
lr1110_modem_get_chip_eui
err_t lr1110_modem_get_chip_eui(lriot_t *ctx, lr1110_modem_chip_eui_t chip_eui)
This command returns the ChipEUI. The ChipEUI is also the default DeviceEUI. It is programmed during ...
lr1110_modem_radio_pa_selection_t
lr1110_modem_radio_pa_selection_t
Power Amplifier Selection values.
Definition: lr1110_modem_lorawan_types.h:108
lr1110_modem_get_certification_mode
err_t lr1110_modem_get_certification_mode(lriot_t *ctx, lr1110_modem_certification_mode_t *enable)
Get the certification mode.
lr1110_modem_set_alc_sync_mode
err_t lr1110_modem_set_alc_sync_mode(lriot_t *ctx, lr1110_modem_alc_sync_mode_t mode)
Set the mode for application layer clock synchronization service.
lr1110_modem_output_power_config_list_t
lr1110_modem_output_power_config_t lr1110_modem_output_power_config_list_t[LR1110_MODEM_NB_OUTPUT_POWER_CONFIG_BLOCKS]
Output power config type.
Definition: lr1110_modem_lorawan_types.h:569
lr1110_modem_set_certification_mode
err_t lr1110_modem_set_certification_mode(lriot_t *ctx, lr1110_modem_certification_mode_t enable)
Activate/deactivate the certification mode.
lr1110_modem_get_stream_redundancy_rate
err_t lr1110_modem_get_stream_redundancy_rate(lriot_t *ctx, uint8_t *stream_redundancy_rate)
Get the stream redundancy rate.
lr1110_modem_join
err_t lr1110_modem_join(lriot_t *ctx)
This command starts joining the network. During the join procedure no further transmissions can occur...
lr1110_modem_set_dm_info_field
err_t lr1110_modem_set_dm_info_field(lriot_t *ctx, lr1110_modem_dm_info_fields_t *dm_info_fields)
This command sets the default info fields to be included in the periodic DM status messages....
lr1110_modem_set_dm_port
err_t lr1110_modem_set_dm_port(lriot_t *ctx, uint8_t port)
This command sets the device management port. Port 0 and ports from 224 and 255 must not be used sinc...
lr1110_modem_event_fields_t
modem event fields structure
Definition: lr1110_modem_lorawan_types.h:476
lr1110_modem_get_duty_cycle_status
err_t lr1110_modem_get_duty_cycle_status(lriot_t *ctx, int32_t *duty_cycle)
Get Duty cycle status info.
lr1110_modem_test_mode_start
err_t lr1110_modem_test_mode_start(lriot_t *ctx)
This command is used to implement test functionality for regulatory conformance, certification,...
lr1110_modem_set_rf_output
err_t lr1110_modem_set_rf_output(lriot_t *ctx, lr1110_modem_radio_pa_selection_t output)
Configure rf output configuration.
lr1110_modem_test_rssi_gnss
err_t lr1110_modem_test_rssi_gnss(lriot_t *ctx, lr1110_modem_tst_mode_constellation_t constellation_modulation, uint16_t time_ms, lr1110_modem_tst_mode_bw_t bw)
Continuously receive packets on GNSS radio path.
lr1110_modem_get_adr_profile
err_t lr1110_modem_get_adr_profile(lriot_t *ctx, lr1110_modem_adr_profiles_t *adr_profile)
This command returns the ADR profile type.
lr1110_modem_get_join_eui
err_t lr1110_modem_get_join_eui(lriot_t *ctx, lr1110_modem_join_eui_t join_eui)
This command returns the join EUI.
lr1110_modem_dev_eui_t
uint8_t lr1110_modem_dev_eui_t[LR1110_MODEM_DEV_EUI_LENGTH]
Device EUI type.
Definition: lr1110_modem_lorawan_types.h:553
lr1110_modem_network_type_t
lr1110_modem_network_type_t
Select the LoRaWAN network type.
Definition: lr1110_modem_lorawan_types.h:458
lr1110_modem_test_tx_cont
err_t lr1110_modem_test_tx_cont(lriot_t *ctx, uint32_t frequency, int8_t tx_power, lr1110_modem_tst_mode_sf_t sf, lr1110_modem_tst_mode_bw_t bw, lr1110_modem_tst_mode_cr_t cr, uint8_t payload_length)
Continuously transmit packets as fast as possible.
lr1110_modem_test_exit
err_t lr1110_modem_test_exit(lriot_t *ctx)
Exit test mode and reset LR1110 modem.
lr1110_modem_get_alc_sync_port
err_t lr1110_modem_get_alc_sync_port(lriot_t *ctx, uint8_t *port)
Get the port for application layer clock synchronization.
lr1110_modem_reset_charge
err_t lr1110_modem_reset_charge(lriot_t *ctx)
This command resets the accumulated charge counter to zero.
lr1110_modem_send_dm_status
err_t lr1110_modem_send_dm_status(lriot_t *ctx, lr1110_modem_dm_info_fields_t *dm_info_fields)
This command sends the specified set of information fields in one or more DM status messages immediat...
lr1110_modem_set_class
err_t lr1110_modem_set_class(lriot_t *ctx, lr1110_modem_classes_t modem_class)
This command sets the LoRaWAN device class. Currently only class A and class C are supported....
lr1110_modem_set_app_status
err_t lr1110_modem_set_app_status(lriot_t *ctx, uint8_t *app_status)
This commands sets application-specific status information to be reported to the DM service....
lr1110_modem_set_app_key
err_t lr1110_modem_set_app_key(lriot_t *ctx, lr1110_modem_app_key_t app_key)
This command sets the LoRaWAN 1.0.3 application key. Note that a factory reset will erase this inform...
lr1110_modem_get_status
err_t lr1110_modem_get_status(lriot_t *ctx, lr1110_modem_status_t *status)
This command returns the modem status which may indicate one or more notification conditions.
lr1110_modem_test_rssi_2g4
err_t lr1110_modem_test_rssi_2g4(lriot_t *ctx, uint8_t channel, uint16_t time_ms, lr1110_modem_tst_mode_bw_t bw)
Continuously receive packets on 2.4GHz radio path.
lr1110_modem_get_dm_port
err_t lr1110_modem_get_dm_port(lriot_t *ctx, uint8_t *port)
This command gets the device management port.
lr1110_modem_dm_info_fields_t
DM info fields structure.
Definition: lr1110_modem_lorawan_types.h:500
lr1110_modem_get_output_power_config
err_t lr1110_modem_get_output_power_config(lriot_t *ctx, lr1110_modem_output_power_config_list_t output_power_config)
This command gets 6 blocks of Tx output power configurations: expected power, configured power,...
lr1110_modem_set_tx_power_offset
err_t lr1110_modem_set_tx_power_offset(lriot_t *ctx, int8_t tx_power_offset)
This command sets the board-specific correction offset for transmission power to be used....
lr1110_modem_test_nop
err_t lr1110_modem_test_nop(lriot_t *ctx)
No operation. This command may be used to terminate an ongoing continuous TX operation.
lr1110_modem_get_charge
err_t lr1110_modem_get_charge(lriot_t *ctx, uint32_t *charge)
This command returns the total charge counter of the modem in mAh. This value includes the accumulate...
lr1110_modem_test_tx_cw
err_t lr1110_modem_test_tx_cw(lriot_t *ctx, uint32_t frequency, int8_t tx_power)
Transmit a continuous wave.
lr1110_modem_test_rx_cont
err_t lr1110_modem_test_rx_cont(lriot_t *ctx, uint32_t frequency, lr1110_modem_tst_mode_sf_t sf, lr1110_modem_tst_mode_bw_t bw, lr1110_modem_tst_mode_cr_t cr)
Continuously receive packets.
lr1110_modem_get_dm_info_interval
err_t lr1110_modem_get_dm_info_interval(lriot_t *ctx, uint8_t *format, uint8_t *interval)
This command returns the device management reporting interval. The interval is specified in seconds,...
lr1110_modem_stream_status_t
stream status structure
Definition: lr1110_modem_lorawan_types.h:509
lr1110_modem_uplink_type_t
lr1110_modem_uplink_type_t
LoRaWAN uplink type.
Definition: lr1110_modem_lorawan_types.h:227
lr1110_modem_classes_t
lr1110_modem_classes_t
LoRaWAN class type.
Definition: lr1110_modem_lorawan_types.h:129
lr1110_modem_emergency_tx
err_t lr1110_modem_emergency_tx(lriot_t *ctx, uint8_t port, lr1110_modem_uplink_type_t uplink_type, uint8_t *data_buf, uint8_t length)
This command sends the given data on the specified port as an unconfirmed (0x00) or confirmed (0x01) ...
lr1110_modem_set_stream_redundancy_rate
err_t lr1110_modem_set_stream_redundancy_rate(lriot_t *ctx, uint8_t stream_redundancy_rate)
Set the stream redundancy rate.
lr1110_modem_set_crystal_error
err_t lr1110_modem_set_crystal_error(lriot_t *ctx, uint32_t crystal_error)
Set the Crystal error of the MCU to fine adjust the rx window for lorawan ( ex: set 30 for a crystal ...
lr1110_modem_tst_mode_bw_t
lr1110_modem_tst_mode_bw_t
Bandwidth for test mode.
Definition: lr1110_modem_lorawan_types.h:271
lr1110_modem_send_stream_data
err_t lr1110_modem_send_stream_data(lriot_t *ctx, uint8_t port, uint8_t *record, uint8_t length)
This command adds a new data record to the buffer of the data streaming encoder for the given port....
lr1110_modem_get_network_type
err_t lr1110_modem_get_network_type(lriot_t *ctx, lr1110_modem_network_type_t *network_type)
Get the LoRaWAN network type.
lr1110_modem_upload_start
err_t lr1110_modem_upload_start(lriot_t *ctx, uint32_t crc)
After all data bytes indicated to UploadInit have been provided using UploadData this command can be ...
lr1110_modem_alc_sync_mode_t
lr1110_modem_alc_sync_mode_t
ALC Sync service activation mode.
Definition: lr1110_modem_lorawan_types.h:378
lr1110_modem_set_dm_info_interval
err_t lr1110_modem_set_dm_info_interval(lriot_t *ctx, lr1110_modem_reporting_interval_format_t format, uint8_t interval)
This command sets the device management reporting interval. The interval is specified in seconds,...
lr1110_modem_suspend
err_t lr1110_modem_suspend(lriot_t *ctx, lr1110_modem_suspend_t suspend)
This command temporarily suspends or resumes the modem’s radio operations. It can be used to prevent ...
lr1110_modem_get_tx_power_offset
err_t lr1110_modem_get_tx_power_offset(lriot_t *ctx, int8_t *tx_power_offset)
This command gets the board-specific correction offset for transmission power to be used (signed inte...
lr1110_modem_join_eui_t
uint8_t lr1110_modem_join_eui_t[LR1110_MODEM_JOIN_EUI_LENGTH]
Join EUI type.
Definition: lr1110_modem_lorawan_types.h:548