67 set_channel(
int channel)
83 set_dst_panid(
int panid)
95 set_src_panid(
int panid)
111 set_auto_mode(
bool mode)
123 set_long_addr(uint64_t address)
139 set_short_addr(
int address)
155 set_iamcoord_bit(
bool iamcoord)
163 get_iamcoord_bit(
void)
171 set_coord_long_addr(uint64_t address)
177 get_coord_long_addr(
void)
183 set_coord_short_addr(
int address)
189 get_coord_short_addr(
void)
195 set_dest_long_addr(uint64_t address)
201 get_dest_long_addr(
void)
212 pieee_15_4_manager->
wake = wake;
213 pieee_15_4_manager->
sleep = sleep;
uint16_t macCoordShortAddress
The 16-bit short address assigned to the coordinator through which the network layer wishes to commun...
int(* get_src_panid)(void)
Get the Source PAN_ID.
int(* get_coord_short_addr)(void)
Get the Coordinator Long address.
uint8_t radio_get_device_role(void)
This function will read the I_AM_COORD sub register.
void(* set_long_addr)(uint64_t address)
Set the Long Address.
Example glue code between the existing MAC code and the Contiki mac interface.
uint16_t macSrcPANId
The 16-bit identifier of the PAN on which the device is operating.
int(* get_dst_panid)(void)
Get the Destination PAN_ID.
uint64_t(* get_long_addr)(void)
Get the Long Address.
int(* sleep)(void)
Turn the MAC layer off.
void(* set_dest_long_addr)(uint64_t address)
Set the Destination address.
void(* set_src_panid)(int panid)
Set the Source PAN_ID.
The interface structure for the 802.15.4 quasi-MAC.
void ieee_15_4_init(ieee_15_4_manager_t *pieee_15_4_manager)
initializes the 802.15.4 manager layer.
uint8_t radio_get_operating_channel(void)
This function will return the channel used by the radio transceiver.
uint64_t(* get_dest_long_addr)(void)
Get the Destination address.
radio_status_t radio_leave_sleep_mode(void)
This function will take the radio transceiver from sleep mode and put it into the TRX_OFF state...
void radio_get_extended_address(uint8_t *extended_address)
This function will read the extended address used by the address filter.
uint64_t macLongAddr
Our own long address.
uint16_t radio_get_pan_id(void)
This function will return the PANID used by the address filter.
uint64_t macCoordExtendedAddress
The 64-bit address of the coordinator/router through which the network layer wishes to communicate...
uint16_t radio_get_short_address(void)
This function will return the current short address used by the address filter.
void(* set_short_addr)(int address)
Set the Short Address.
void(* set_auto_mode)(bool mode)
Set the Automatic TRX modes.
uint64_t(* get_coord_long_addr)(void)
Get the Coordinator Long address.
void(* set_iamcoord_bit)(bool iamcoord)
Set the iAmCoord bit.
void(* set_dst_panid)(int panid)
Set the Destination PAN_ID.
radio_status_t radio_set_operating_channel(uint8_t channel)
This function will change the operating channel.
void(* set_coord_short_addr)(int address)
Set the Coordinator Long address.
void radio_set_pan_id(uint16_t new_pan_id)
This function will set the PANID used by the address filter.
void radio_set_device_role(bool i_am_coordinator)
This function will set the I_AM_COORD sub register.
uint8_t phyCurrentChannel
The RF channel to use for all following transmissions and receptions (see 6.1.2). ...
bool(* get_iamcoord_bit)(void)
Get the iAmCoord bit.
void radio_set_extended_address(uint8_t *extended_address)
This function will set a new extended address to be used by the address filter.
bool(* get_auto_mode)(void)
Get the current state of Automatic TRX modes.
int(* get_channel)(void)
Get the operating channel.
radio_status_t radio_enter_sleep_mode(void)
This function will put the radio transceiver to sleep.
void(* set_channel)(int channel)
Set the operating channel.
uint64_t macDestAddress
This address is the 64-bit address that will be used as the mechanism to provide a destination to the...
void radio_set_short_address(uint16_t new_short_address)
This function will set the short address used by the address filter.
The IEEE 802.15.4 (2003/2006) MAC utility functions.
int(* get_short_addr)(void)
Get the short Address.
void(* set_coord_long_addr)(uint64_t address)
Set the Coordinator Long address.
uint16_t macShortAddress
The 16-bit address that the device uses to communicate in the PAN.
uint16_t macDstPANId
The 16-bit identifier of the PAN on which the device is sending to.
int(* wake)(void)
Turn the MAC layer on.