28 #include "sys/autostart.h" 29 #include "sys/process.h" 30 #include "sys/etimer.h"
void mira_set_name(char *name)
Set the node name.
void mira_register_data_received_callback(MiraReceivedDataCallback callback)
Register the received data callback.
MiraOS analog to digital converter driver.
void mira_become_root(void)
Become the network root.
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_enable_rf_frontend(void)
Enables the RF frontend.
MiraAddressType
Supported addressing modes for Mira messages.
Definition: miralib.h:55
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:67
void mira_disable_rf_frontend(void)
Disables the RF frontend.
void mira_init(void)
Initializes the library.
MiraErrorType
Return error codes for Mira library functions.
Definition: miralib.h:44
void(* MiraReceivedDataCallback)(uint8_t *data_ptr, uint8_t length, MiraAddressType address_type, uint8_t *address_ptr)
Function pointer to receive callback.
Definition: miralib.h:83
void mira_reboot(void)
Reboots the module.