28 #include "sys/autostart.h"    29 #include "sys/process.h"    30 #include "sys/etimer.h" int8_t mira_check_mailbox(void)
Check for mails. 
 
void mira_set_name(char *name)
Set the node name. 
 
void mira_register_data_received_callback(MiraReceivedDataCallback callback)
Register the received data callback. 
 
void mira_init_bootloader(uint16_t firmware_image_id)
Initializes the library in bootloader mode. 
 
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_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. 
 
MiraAddressType
Supported addressing modes for Mira messages. 
Definition: miralib.h:56
 
void mira_select_antenna(MiraAntennaType antenna)
Selects the antenna option. 
 
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. 
 
void mira_init(void)
Initializes the library. 
 
void(* MiraReceivedMailCallback)(uint8_t *data_ptr, uint8_t length)
Function pointer to receive callback. 
Definition: miralib.h:94
 
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:84
 
void mira_reboot(void)
Reboots the module.