28 #include "sys/autostart.h"    29 #include "sys/process.h"    30 #include "sys/etimer.h"    90     MIRA_SERIAL_COMMAND_INTERFACE_DISABLED = 0,
    91     MIRA_SERIAL_COMMAND_INTERFACE_ENABLED
    92 } MiraSerialCommandInterfaceMode;
   152 #define mira_wait_for_empty_queue() \   154     while (!mira_tx_queue_is_empty()) { \   314 void mira_init(MiraSerialCommandInterfaceMode serial_command_interface_mode);
   327 void mira_init_bootloader(MiraSerialCommandInterfaceMode serial_command_interface_mode, uint16_t firmware_image_id);
 
int8_t mira_check_mailbox(void)
Check for mails. 
 
void mira_leave_fwup_process(void)
Leaves a firmware update process. 
 
void mira_init(MiraSerialCommandInterfaceMode serial_command_interface_mode)
Initializes the library. 
 
void mira_set_name(char *name)
Set the node name. 
 
void mira_disable_data_forwarding()
Disable forwarding of data messages to the command serial port. 
 
void mira_init_bootloader(MiraSerialCommandInterfaceMode serial_command_interface_mode, uint16_t firmware_image_id)
Initializes the library in bootloader mode. 
 
void mira_register_data_received_callback(MiraReceivedDataCallback callback)
Register the received data callback. 
 
MiraOS analog to digital converter driver. 
 
process_event_t mira_tx_queue_empty_event
Event for that the TX queue now is empty. 
 
void mira_become_root(void)
Become the network root. 
 
void mira_copy_board_eui(uint8_t *eui_ptr)
Get the board EUI-64. 
 
void mira_set_credentials(uint16_t pan_id, uint8_t *aes_key)
Sets the network credentials to use. 
 
void mira_enable_data_forwarding()
Enable forwarding of data messages to the command serial port. 
 
void mira_commit_network_setup(void)
Commit the network setup and start routing traffic. 
 
void mira_register_mail_received_callback(MiraReceivedMailCallback callback)
Register the received data callback for mails to sleepy nodes. 
 
void mira_enable_rf_frontend(void)
Enables the RF frontend. 
 
uint8_t mira_tx_queue_is_empty(void)
TX queue empty check. 
 
MiraAddressType
Supported addressing modes for Mira messages. 
Definition: miralib.h:56
 
void mira_select_antenna(MiraAntennaType antenna)
Selects the antenna option. 
 
void mira_set_fw_encryption_key(uint8_t *key)
Sets the encryption key to be used for firmware update files. 
 
MiraErrorType mira_send_data(MiraAddressType address_type, uint8_t *address_ptr, uint8_t *data_ptr, uint8_t length)
Function to send a data message. 
 
MiraAntennaType
Antenna options. 
Definition: miralib.h:68
 
void mira_disable_rf_frontend(void)
Disables the RF frontend. 
 
MiraConnectionStatus mira_get_connection_status(void)
Get the current network connection status. 
 
MiraConnectionStatus
Connection status. 
Definition: miralib.h:78
 
void(* MiraReceivedMailCallback)(uint8_t *data_ptr, uint8_t length)
Function pointer to receive callback. 
Definition: miralib.h:114
 
MiraErrorType
Return error codes for Mira library functions. 
Definition: miralib.h:45
 
void(* MiraReceivedDataCallback)(uint8_t *data_ptr, uint8_t length, MiraAddressType address_type, uint8_t *address_ptr)
Function pointer to receive callback. 
Definition: miralib.h:104
 
void mira_reboot(void)
Reboots the module.