Firmware SDK
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
bc_cmwx1zzabz

Driver for CMWX1ZZABZ muRata LoRa modem. More...

Typedefs

typedef struct bc_cmwx1zzabz_t bc_cmwx1zzabz_t
 CMWX1ZZABZ instance.
 

Enumerations

enum  bc_cmwx1zzabz_event_t {
  BC_CMWX1ZZABZ_EVENT_READY = 0,
  BC_CMWX1ZZABZ_EVENT_ERROR = 1,
  BC_CMWX1ZZABZ_EVENT_SEND_MESSAGE_START = 2,
  BC_CMWX1ZZABZ_EVENT_SEND_MESSAGE_DONE = 3,
  BC_CMWX1ZZABZ_EVENT_CONFIG_SAVE_DONE = 4,
  BC_CMWX1ZZABZ_EVENT_JOIN_SUCCESS = 5,
  BC_CMWX1ZZABZ_EVENT_JOIN_ERROR = 6,
  BC_CMWX1ZZABZ_EVENT_MESSAGE_RECEIVED = 7,
  BC_CMWX1ZZABZ_EVENT_MESSAGE_RETRANSMISSION = 8,
  BC_CMWX1ZZABZ_EVENT_MESSAGE_CONFIRMED = 9,
  BC_CMWX1ZZABZ_EVENT_MESSAGE_NOT_CONFIRMED = 10
}
 Callback events. More...
 
enum  bc_cmwx1zzabz_config_mode_t {
  BC_CMWX1ZZABZ_CONFIG_MODE_ABP = 0,
  BC_CMWX1ZZABZ_CONFIG_MODE_OTAA = 1
}
 LoRa mode ABP/OTAA.
 
enum  bc_cmwx1zzabz_config_band_t {
  BC_CMWX1ZZABZ_CONFIG_BAND_AS923 = 0,
  BC_CMWX1ZZABZ_CONFIG_BAND_AU915 = 1,
  BC_CMWX1ZZABZ_CONFIG_BAND_EU868 = 5,
  BC_CMWX1ZZABZ_CONFIG_BAND_KR920 = 6,
  BC_CMWX1ZZABZ_CONFIG_BAND_IN865 = 7,
  BC_CMWX1ZZABZ_CONFIG_BAND_US915 = 8
}
 Frequency modes and standards.
 
enum  bc_cmwx1zzabz_config_class_t {
  BC_CMWX1ZZABZ_CONFIG_CLASS_A = 0,
  BC_CMWX1ZZABZ_CONFIG_CLASS_C = 2
}
 LoRa device class A or C.
 
enum  bc_cmwx1zzabz_config_datarate_as923_t {
  BC_CMWX1ZZABZ_CONFIG_DATARATE_AS923_SF12_125KHZ = 0,
  BC_CMWX1ZZABZ_CONFIG_DATARATE_AS923_SF11_125KHZ = 1,
  BC_CMWX1ZZABZ_CONFIG_DATARATE_AS923_SF10_125KHZ = 2,
  BC_CMWX1ZZABZ_CONFIG_DATARATE_AS923_SF9_125KHZ = 3,
  BC_CMWX1ZZABZ_CONFIG_DATARATE_AS923_SF8_125KHZ = 4,
  BC_CMWX1ZZABZ_CONFIG_DATARATE_AS923_SF7_125KHZ = 5,
  BC_CMWX1ZZABZ_CONFIG_DATARATE_AS923_SF7_250KHZ = 6,
  BC_CMWX1ZZABZ_CONFIG_DATARATE_AS923_FSK_50KBPS = 7
}
 Datarate for AS923.
 
enum  bc_cmwx1zzabz_config_datarate_au915_t {
  BC_CMWX1ZZABZ_CONFIG_DATARATE_AU915_SF12_125KHZ = 0,
  BC_CMWX1ZZABZ_CONFIG_DATARATE_AU915_SF11_125KHZ = 1,
  BC_CMWX1ZZABZ_CONFIG_DATARATE_AU915_SF10_125KHZ = 2,
  BC_CMWX1ZZABZ_CONFIG_DATARATE_AU915_SF9_125KHZ = 3,
  BC_CMWX1ZZABZ_CONFIG_DATARATE_AU915_SF8_125KHZ = 4,
  BC_CMWX1ZZABZ_CONFIG_DATARATE_AU915_SF7_125KHZ = 5,
  BC_CMWX1ZZABZ_CONFIG_DATARATE_AU915_SF8_500KHZ = 6,
  BC_CMWX1ZZABZ_CONFIG_DATARATE_AU915_SF12_500KHZ = 8,
  BC_CMWX1ZZABZ_CONFIG_DATARATE_AU915_SF11_500KHZ = 9,
  BC_CMWX1ZZABZ_CONFIG_DATARATE_AU915_SF10_500KHZ = 10,
  BC_CMWX1ZZABZ_CONFIG_DATARATE_AU915_SF9_500KHZ = 11,
  BC_CMWX1ZZABZ_CONFIG_DATARATE_AU915_SF8_500KHZ_2 = 12,
  BC_CMWX1ZZABZ_CONFIG_DATARATE_AU915_SF7_500KHZ = 13
}
 Datarate for AU915.
 
enum  bc_cmwx1zzabz_config_datarate_eu868_t {
  BC_CMWX1ZZABZ_CONFIG_DATARATE_EU868_SF12_125KHZ = 0,
  BC_CMWX1ZZABZ_CONFIG_DATARATE_EU868_SF11_125KHZ = 1,
  BC_CMWX1ZZABZ_CONFIG_DATARATE_EU868_SF10_125KHZ = 2,
  BC_CMWX1ZZABZ_CONFIG_DATARATE_EU868_SF9_125KHZ = 3,
  BC_CMWX1ZZABZ_CONFIG_DATARATE_EU868_SF8_125KHZ = 4,
  BC_CMWX1ZZABZ_CONFIG_DATARATE_EU868_SF7_125KHZ = 5,
  BC_CMWX1ZZABZ_CONFIG_DATARATE_EU868_SF7_250KHZ = 6,
  BC_CMWX1ZZABZ_CONFIG_DATARATE_EU868_FSK_50KBPS = 7
}
 Datarate for EU868.
 
enum  bc_cmwx1zzabz_config_datarate_kr920_t {
  BC_CMWX1ZZABZ_CONFIG_DATARATE_KR920_SF12_125KHZ = 0,
  BC_CMWX1ZZABZ_CONFIG_DATARATE_KR920_SF11_125KHZ = 1,
  BC_CMWX1ZZABZ_CONFIG_DATARATE_KR920_SF10_125KHZ = 2,
  BC_CMWX1ZZABZ_CONFIG_DATARATE_KR920_SF9_125KHZ = 3,
  BC_CMWX1ZZABZ_CONFIG_DATARATE_KR920_SF8_125KHZ = 4,
  BC_CMWX1ZZABZ_CONFIG_DATARATE_KR920_SF7_125KHZ = 5
}
 Datarate for KR920.
 
enum  bc_cmwx1zzabz_config_datarate_us915_t {
  BC_CMWX1ZZABZ_CONFIG_DATARATE_US915_SF10_125KHZ = 0,
  BC_CMWX1ZZABZ_CONFIG_DATARATE_US915_SF9_125KHZ = 1,
  BC_CMWX1ZZABZ_CONFIG_DATARATE_US915_SF8_125KHZ = 2,
  BC_CMWX1ZZABZ_CONFIG_DATARATE_US915_SF7_125KHZ = 3,
  BC_CMWX1ZZABZ_CONFIG_DATARATE_US915_SF8_500KHZ = 4,
  BC_CMWX1ZZABZ_CONFIG_DATARATE_US915_SF12_500KHZ = 8,
  BC_CMWX1ZZABZ_CONFIG_DATARATE_US915_SF11_500KHZ = 9,
  BC_CMWX1ZZABZ_CONFIG_DATARATE_US915_SF10_500KHZ = 10,
  BC_CMWX1ZZABZ_CONFIG_DATARATE_US915_SF9_500KHZ = 11,
  BC_CMWX1ZZABZ_CONFIG_DATARATE_US915_SF8_500KHZ_2 = 12,
  BC_CMWX1ZZABZ_CONFIG_DATARATE_US915_SF7_500KHZ = 13
}
 Datarate for US915.
 

Functions

void bc_cmwx1zzabz_init (bc_cmwx1zzabz_t *self, bc_uart_channel_t uart_channel)
 Initialize CMWX1ZZABZ. More...
 
void bc_cmwx1zzabz_set_event_handler (bc_cmwx1zzabz_t *self, void(*event_handler)(bc_cmwx1zzabz_t *, bc_cmwx1zzabz_event_t, void *), void *event_param)
 Set callback function. More...
 
bool bc_cmwx1zzabz_is_ready (bc_cmwx1zzabz_t *self)
 Check if modem is ready for commands. More...
 
bool bc_cmwx1zzabz_send_message (bc_cmwx1zzabz_t *self, const void *buffer, size_t length)
 Send LoRa message. More...
 
bool bc_cmwx1zzabz_send_message_confirmed (bc_cmwx1zzabz_t *self, const void *buffer, size_t length)
 Send LoRa confirmed message. More...
 
void bc_cmwx1zzabz_set_devaddr (bc_cmwx1zzabz_t *self, char *devaddr)
 Set DEVADDR. More...
 
void bc_cmwx1zzabz_get_devaddr (bc_cmwx1zzabz_t *self, char *devaddr)
 Get DEVADDR. More...
 
void bc_cmwx1zzabz_set_deveui (bc_cmwx1zzabz_t *self, char *deveui)
 Set DEVEUI. More...
 
void bc_cmwx1zzabz_get_deveui (bc_cmwx1zzabz_t *self, char *deveui)
 Get DEVEUI. More...
 
void bc_cmwx1zzabz_set_appeui (bc_cmwx1zzabz_t *self, char *appeui)
 Set APPEUI. More...
 
void bc_cmwx1zzabz_get_appeui (bc_cmwx1zzabz_t *self, char *appeui)
 Get APPEUI. More...
 
void bc_cmwx1zzabz_set_nwkskey (bc_cmwx1zzabz_t *self, char *nwkskey)
 Set NWKSKEY. More...
 
void bc_cmwx1zzabz_get_nwkskey (bc_cmwx1zzabz_t *self, char *nwkskey)
 Set NWKSKEY. More...
 
void bc_cmwx1zzabz_set_appskey (bc_cmwx1zzabz_t *self, char *appskey)
 Set APPSKEY. More...
 
void bc_cmwx1zzabz_get_appskey (bc_cmwx1zzabz_t *self, char *appskey)
 Get APPSKEY. More...
 
void bc_cmwx1zzabz_set_appkey (bc_cmwx1zzabz_t *self, char *appkey)
 Set APPKEY. More...
 
void bc_cmwx1zzabz_get_appkey (bc_cmwx1zzabz_t *self, char *appkey)
 Get APPKEY. More...
 
void bc_cmwx1zzabz_set_band (bc_cmwx1zzabz_t *self, bc_cmwx1zzabz_config_band_t band)
 Set BAND. More...
 
bc_cmwx1zzabz_config_band_t bc_cmwx1zzabz_get_band (bc_cmwx1zzabz_t *self)
 Get BAND. More...
 
void bc_cmwx1zzabz_set_mode (bc_cmwx1zzabz_t *self, bc_cmwx1zzabz_config_mode_t mode)
 Set ABP/OTAA mode. More...
 
bc_cmwx1zzabz_config_mode_t bc_cmwx1zzabz_get_mode (bc_cmwx1zzabz_t *self)
 Get ABP/OTAA mode. More...
 
void bc_cmwx1zzabz_set_class (bc_cmwx1zzabz_t *self, bc_cmwx1zzabz_config_class_t class)
 Set device class. More...
 
bc_cmwx1zzabz_config_class_t bc_cmwx1zzabz_get_class (bc_cmwx1zzabz_t *self)
 Get device class. More...
 
void bc_cmwx1zzabz_join (bc_cmwx1zzabz_t *self)
 Start LoRa OTAA join procedure. More...
 
uint8_t bc_cmwx1zzabz_get_received_message_port (bc_cmwx1zzabz_t *self)
 Get port of the received message. More...
 
uint32_t bc_cmwx1zzabz_get_received_message_length (bc_cmwx1zzabz_t *self)
 Get length of the received message. More...
 
uint32_t bc_cmwx1zzabz_get_received_message_data (bc_cmwx1zzabz_t *self, uint8_t *buffer, uint32_t buffer_size)
 Get received message data. More...
 
void bc_cmwx1zzabz_set_port (bc_cmwx1zzabz_t *self, uint8_t port)
 Set the port for the transmission of the messages. More...
 
uint8_t bc_cmwx1zzabz_get_port (bc_cmwx1zzabz_t *self)
 Get the port for the transmission of the messages. More...
 
void bc_cmwx1zzabz_set_rx2 (bc_cmwx1zzabz_t *self, uint32_t frequency, uint8_t datarate)
 Set the frequency and datarate for RX2 receive window. More...
 
void bc_cmwx1zzabz_get_rx2 (bc_cmwx1zzabz_t *self, uint32_t *frequency, uint8_t *datarate)
 Get the frequency and datarate for RX2 receive window. More...
 
void bc_cmwx1zzabz_set_nwk_public (bc_cmwx1zzabz_t *self, uint8_t public)
 Set the configuration enabling public networks. More...
 
uint8_t bc_cmwx1zzabz_get_nwk_public (bc_cmwx1zzabz_t *self)
 Get the configuration if public networks are enabled. More...
 
void bc_cmwx1zzabz_set_datarate (bc_cmwx1zzabz_t *self, uint8_t datarate)
 Set the configuration of datarate. More...
 
uint8_t bc_cmwx1zzabz_get_datarate (bc_cmwx1zzabz_t *self)
 Get the configuration of datarate. More...
 

Detailed Description

Driver for CMWX1ZZABZ muRata LoRa modem.

Enumeration Type Documentation

Callback events.

Enumerator
BC_CMWX1ZZABZ_EVENT_READY 

Ready event.

BC_CMWX1ZZABZ_EVENT_ERROR 

Error event.

BC_CMWX1ZZABZ_EVENT_SEND_MESSAGE_START 

RF frame transmission started event.

BC_CMWX1ZZABZ_EVENT_SEND_MESSAGE_DONE 

RF frame transmission finished event.

BC_CMWX1ZZABZ_EVENT_CONFIG_SAVE_DONE 

Configuration save done.

BC_CMWX1ZZABZ_EVENT_JOIN_SUCCESS 

OTAA join success.

BC_CMWX1ZZABZ_EVENT_JOIN_ERROR 

OTAA join error.

BC_CMWX1ZZABZ_EVENT_MESSAGE_RECEIVED 

Received message.

BC_CMWX1ZZABZ_EVENT_MESSAGE_RETRANSMISSION 

Retransmission of the confirmed message.

BC_CMWX1ZZABZ_EVENT_MESSAGE_CONFIRMED 

Sent message confirmed.

BC_CMWX1ZZABZ_EVENT_MESSAGE_NOT_CONFIRMED 

Sent message not confirmed.

Definition at line 23 of file bc_cmwx1zzabz.h.

Function Documentation

void bc_cmwx1zzabz_get_appeui ( bc_cmwx1zzabz_t self,
char *  appeui 
)

Get APPEUI.

Parameters
[in]selfInstance
[in]appeuiPointer to at least 16+1 character string

Definition at line 756 of file bc_cmwx1zzabz.c.

void bc_cmwx1zzabz_get_appkey ( bc_cmwx1zzabz_t self,
char *  appkey 
)

Get APPKEY.

Parameters
[in]selfInstance
[in]appkeyPointer to at least 32+1 character string

Definition at line 792 of file bc_cmwx1zzabz.c.

void bc_cmwx1zzabz_get_appskey ( bc_cmwx1zzabz_t self,
char *  appskey 
)

Get APPSKEY.

Parameters
[in]selfInstance
[in]appskeyPointer to at least 32+1 character string

Definition at line 780 of file bc_cmwx1zzabz.c.

bc_cmwx1zzabz_config_band_t bc_cmwx1zzabz_get_band ( bc_cmwx1zzabz_t self)

Get BAND.

Parameters
[in]selfInstance
Returns
Band value

Definition at line 804 of file bc_cmwx1zzabz.c.

bc_cmwx1zzabz_config_class_t bc_cmwx1zzabz_get_class ( bc_cmwx1zzabz_t self)

Get device class.

Parameters
[in]selfInstance
Returns
Class A or C

Definition at line 828 of file bc_cmwx1zzabz.c.

uint8_t bc_cmwx1zzabz_get_datarate ( bc_cmwx1zzabz_t self)

Get the configuration of datarate.

Parameters
[in]selfInstance
Returns
datarate Datarate (see the enums)

Definition at line 889 of file bc_cmwx1zzabz.c.

void bc_cmwx1zzabz_get_devaddr ( bc_cmwx1zzabz_t self,
char *  devaddr 
)

Get DEVADDR.

Parameters
[in]selfInstance
[in]devaddrPointer to at least 8+1 character string

Definition at line 732 of file bc_cmwx1zzabz.c.

void bc_cmwx1zzabz_get_deveui ( bc_cmwx1zzabz_t self,
char *  deveui 
)

Get DEVEUI.

Parameters
[in]selfInstance
[in]deveuiPointer to at least 16+1 character string.

Definition at line 744 of file bc_cmwx1zzabz.c.

bc_cmwx1zzabz_config_mode_t bc_cmwx1zzabz_get_mode ( bc_cmwx1zzabz_t self)

Get ABP/OTAA mode.

Parameters
[in]selfInstance
Returns
ABP or OTAA mode

Definition at line 816 of file bc_cmwx1zzabz.c.

uint8_t bc_cmwx1zzabz_get_nwk_public ( bc_cmwx1zzabz_t self)

Get the configuration if public networks are enabled.

Parameters
[in]selfInstance
Returns
public networks enabled

Definition at line 877 of file bc_cmwx1zzabz.c.

void bc_cmwx1zzabz_get_nwkskey ( bc_cmwx1zzabz_t self,
char *  nwkskey 
)

Set NWKSKEY.

Parameters
[in]selfInstance
[in]nwkskeyPointer to at least 32+1 character string

Definition at line 768 of file bc_cmwx1zzabz.c.

uint8_t bc_cmwx1zzabz_get_port ( bc_cmwx1zzabz_t self)

Get the port for the transmission of the messages.

Parameters
[in]selfInstance
Returns
Port

Definition at line 720 of file bc_cmwx1zzabz.c.

uint32_t bc_cmwx1zzabz_get_received_message_data ( bc_cmwx1zzabz_t self,
uint8_t *  buffer,
uint32_t  buffer_size 
)

Get received message data.

Parameters
[in]selfInstance
[in]bufferDestination buffer for received data
[in]buffer_sizeSize of the destination buffer
Returns
Length of the received message. Zero if the destination buffer is not big enough.

Definition at line 843 of file bc_cmwx1zzabz.c.

uint32_t bc_cmwx1zzabz_get_received_message_length ( bc_cmwx1zzabz_t self)

Get length of the received message.

Parameters
[in]selfInstance
Returns
length

Definition at line 838 of file bc_cmwx1zzabz.c.

uint8_t bc_cmwx1zzabz_get_received_message_port ( bc_cmwx1zzabz_t self)

Get port of the received message.

Parameters
[in]selfInstance
Returns
port

Definition at line 833 of file bc_cmwx1zzabz.c.

void bc_cmwx1zzabz_get_rx2 ( bc_cmwx1zzabz_t self,
uint32_t *  frequency,
uint8_t *  datarate 
)

Get the frequency and datarate for RX2 receive window.

Parameters
[in]selfInstance
[in]frequencyPointer to save frequency in Hz
[in]dataratePointer to save datarate

Definition at line 864 of file bc_cmwx1zzabz.c.

void bc_cmwx1zzabz_init ( bc_cmwx1zzabz_t self,
bc_uart_channel_t  uart_channel 
)

Initialize CMWX1ZZABZ.

Parameters
[in]selfInstance
[in]uart_channelUART channel where TX and RX signals are connected

Definition at line 38 of file bc_cmwx1zzabz.c.

Here is the call graph for this function:

bool bc_cmwx1zzabz_is_ready ( bc_cmwx1zzabz_t self)

Check if modem is ready for commands.

Parameters
[in]selfInstance
Returns
true If ready
false If not ready

Definition at line 75 of file bc_cmwx1zzabz.c.

Referenced by bc_cmwx1zzabz_send_message(), and bc_cmwx1zzabz_send_message_confirmed().

Here is the caller graph for this function:

void bc_cmwx1zzabz_join ( bc_cmwx1zzabz_t self)

Start LoRa OTAA join procedure.

Parameters
[in]selfInstance
Note
The output of the join is handled by callback events
See Also
bc_cmwx1zzabz_event_t

Definition at line 709 of file bc_cmwx1zzabz.c.

Here is the call graph for this function:

bool bc_cmwx1zzabz_send_message ( bc_cmwx1zzabz_t self,
const void *  buffer,
size_t  length 
)

Send LoRa message.

Parameters
[in]selfInstance
[in]bufferPointer to data to be transmitted
[in]lengthLength of data to be transmitted in bytes (must be from 1 to 51 bytes)
Returns
true If command was accepted for processing
false If command was denied for processing

Definition at line 85 of file bc_cmwx1zzabz.c.

Here is the call graph for this function:

bool bc_cmwx1zzabz_send_message_confirmed ( bc_cmwx1zzabz_t self,
const void *  buffer,
size_t  length 
)

Send LoRa confirmed message.

Parameters
[in]selfInstance
[in]bufferPointer to data to be transmitted
[in]lengthLength of data to be transmitted in bytes (must be from 1 to 51 bytes)
Returns
true If command was accepted for processing
false If command was denied for processing

Definition at line 103 of file bc_cmwx1zzabz.c.

Here is the call graph for this function:

void bc_cmwx1zzabz_set_appeui ( bc_cmwx1zzabz_t self,
char *  appeui 
)

Set APPEUI.

Parameters
[in]selfInstance
[in]appeuiPointer to 16 character string

Definition at line 749 of file bc_cmwx1zzabz.c.

void bc_cmwx1zzabz_set_appkey ( bc_cmwx1zzabz_t self,
char *  appkey 
)

Set APPKEY.

Parameters
[in]selfInstance
[in]appkeyPointer to 32 character string

Definition at line 785 of file bc_cmwx1zzabz.c.

void bc_cmwx1zzabz_set_appskey ( bc_cmwx1zzabz_t self,
char *  appskey 
)

Set APPSKEY.

Parameters
[in]selfInstance
[in]appskeyPointer to 32 character string

Definition at line 773 of file bc_cmwx1zzabz.c.

void bc_cmwx1zzabz_set_band ( bc_cmwx1zzabz_t self,
bc_cmwx1zzabz_config_band_t  band 
)

Set BAND.

Parameters
[in]selfInstance
[in]bandSet correct frequency and modulation for EU, US and other countries

Definition at line 797 of file bc_cmwx1zzabz.c.

void bc_cmwx1zzabz_set_class ( bc_cmwx1zzabz_t self,
bc_cmwx1zzabz_config_class_t  class 
)

Set device class.

Parameters
[in]selfInstance
[in]classSupported are Class A and C

Definition at line 821 of file bc_cmwx1zzabz.c.

void bc_cmwx1zzabz_set_datarate ( bc_cmwx1zzabz_t self,
uint8_t  datarate 
)

Set the configuration of datarate.

Parameters
[in]selfInstance
[in]datarateDatarate

Definition at line 882 of file bc_cmwx1zzabz.c.

void bc_cmwx1zzabz_set_devaddr ( bc_cmwx1zzabz_t self,
char *  devaddr 
)

Set DEVADDR.

Parameters
[in]selfInstance
[in]devaddrPointer to 8 character string

Definition at line 725 of file bc_cmwx1zzabz.c.

void bc_cmwx1zzabz_set_deveui ( bc_cmwx1zzabz_t self,
char *  deveui 
)

Set DEVEUI.

Parameters
[in]selfInstance
[in]deveuiPointer to 16 character string. WARNING, this value should not be changed as it is unique number programmed in the factory!

Definition at line 737 of file bc_cmwx1zzabz.c.

void bc_cmwx1zzabz_set_event_handler ( bc_cmwx1zzabz_t self,
void(*)(bc_cmwx1zzabz_t *, bc_cmwx1zzabz_event_t, void *)  event_handler,
void *  event_param 
)

Set callback function.

Parameters
[in]selfInstance
[in]event_handlerFunction address
[in]event_paramOptional event parameter (can be NULL)

Definition at line 69 of file bc_cmwx1zzabz.c.

void bc_cmwx1zzabz_set_mode ( bc_cmwx1zzabz_t self,
bc_cmwx1zzabz_config_mode_t  mode 
)

Set ABP/OTAA mode.

Parameters
[in]selfInstance
[in]modeABP or OTAA mode

Definition at line 809 of file bc_cmwx1zzabz.c.

void bc_cmwx1zzabz_set_nwk_public ( bc_cmwx1zzabz_t self,
uint8_t  public 
)

Set the configuration enabling public networks.

Parameters
[in]selfInstance
[in]publicenable public networks

Definition at line 870 of file bc_cmwx1zzabz.c.

void bc_cmwx1zzabz_set_nwkskey ( bc_cmwx1zzabz_t self,
char *  nwkskey 
)

Set NWKSKEY.

Parameters
[in]selfInstance
[in]nwkskeyPointer to 32 character string

Definition at line 761 of file bc_cmwx1zzabz.c.

void bc_cmwx1zzabz_set_port ( bc_cmwx1zzabz_t self,
uint8_t  port 
)

Set the port for the transmission of the messages.

Parameters
[in]selfInstance
[in]portPort

Definition at line 715 of file bc_cmwx1zzabz.c.

void bc_cmwx1zzabz_set_rx2 ( bc_cmwx1zzabz_t self,
uint32_t  frequency,
uint8_t  datarate 
)

Set the frequency and datarate for RX2 receive window.

Parameters
[in]selfInstance
[in]frequencyFrequency in Hz
[in]datarateDatarate

Definition at line 855 of file bc_cmwx1zzabz.c.