GoMacH's internal functions. More...
GoMacH's internal functions.
Definition in file gomach_internal.h.
Go to the source code of this file.
#define | GNRC_GOMACH_INFO_TX_FINISHED (0x0008U) |
Flag to track if the transmission has finished. | |
#define | GNRC_GOMACH_INFO_PKT_RECEIVED (0x0010U) |
Flag to track if a packet has been successfully received. | |
#define | GNRC_GOMACH_INTERNAL_INFO_ND_UPDATE (0x0001U) |
Flag to track if need to update GoMacH. | |
#define | GNRC_GOMACH_INTERNAL_INFO_QUIT_CYCLE (0x0002U) |
Flag to track if need to quit the current cycle in GoMacH. | |
#define | GNRC_GOMACH_INTERNAL_INFO_CP_END (0x0004U) |
Flag to track if CP period has ended in GoMacH. | |
#define | GNRC_GOMACH_INTERNAL_INFO_VTDMA_END (0x0008U) |
Flag to track if vTDMA has ended in GoMacH. | |
#define | GNRC_GOMACH_INTERNAL_INFO_UNINTD_PREAMBLE (0x0010U) |
Flag to track if the node has received unintended preamble. | |
#define | GNRC_GOMACH_INTERNAL_INFO_GOT_PREAMBLE (0x0020U) |
Flag to track if need to quit the current cycle in GoMacH. | |
#define | GNRC_GOMACH_INTERNAL_INFO_DUTY_CYCLE_START (0x0040U) |
Flag to track if node's duty-cycle has started in GoMacH. | |
#define | GNRC_GOMACH_INTERNAL_INFO_PHASE_BACKOFF (0x0080U) |
Flag to track if node need to backoff its phase in GoMacH. | |
#define | GNRC_GOMACH_INTERNAL_INFO_BEACON_FAIL (0x0200U) |
Flag to track if beacon transmission fail in GoMacH. | |
#define | GNRC_GOMACH_INTERNAL_INFO_BUFFER_FULL (0x0400U) |
Flag to track if node's packet buffer is full in GoMacH. | |
#define | GNRC_GOMACH_INTERNAL_INFO_ENTER_NEW_CYCLE (0x0800U) |
Flag to track if node has entered a new cycle in GoMacH. | |
#define | GNRC_GOMACH_INTERNAL_INFO_GOT_PREAMBLEACK (0x1000U) |
Flag to track if node has got preamble-ACK in GoMacH. | |
#define | GNRC_GOMACH_INTERNAL_INFO_ON_PUBCHAN_1 (0x2000U) |
Flag to track if node's radio is on public-channel-1. | |
#define | GNRC_GOMACH_INTERNAL_INFO_MAX_PREAM_INTERV (0x4000U) |
Flag to track if node has reached maximum preamble interval. | |
#define | GNRC_GOMACH_INTERNAL_INFO_RADIO_IS_ON (0x8000U) |
Flag to track if node has turned on its radio. | |
static void | gnrc_gomach_set_tx_finish (gnrc_netif_t *netif, bool tx_finish) |
Set the GNRC_GOMACH_INFO_TX_FINISHED flag of the device. More... | |
static bool | gnrc_gomach_get_tx_finish (gnrc_netif_t *netif) |
Get the GNRC_GOMACH_INFO_TX_FINISHED flag of the device. More... | |
static void | gnrc_gomach_set_pkt_received (gnrc_netif_t *netif, bool received) |
Set the GNRC_GOMACH_INFO_PKT_RECEIVED flag of the device. More... | |
static bool | gnrc_gomach_get_pkt_received (gnrc_netif_t *netif) |
Get the GNRC_GOMACH_INFO_PKT_RECEIVED flag of the device. More... | |
static void | gnrc_gomach_set_quit_cycle (gnrc_netif_t *netif, bool quit) |
Set the GNRC_GOMACH_INTERNAL_INFO_QUIT_CYCLE flag of the device. More... | |
static bool | gnrc_gomach_get_quit_cycle (gnrc_netif_t *netif) |
Get the GNRC_GOMACH_INTERNAL_INFO_QUIT_CYCLE flag of the device. More... | |
static void | gnrc_gomach_set_got_preamble (gnrc_netif_t *netif, bool got_preamble) |
Set the GNRC_GOMACH_INTERNAL_INFO_GOT_PREAMBLE flag of the device. More... | |
static bool | gnrc_gomach_get_got_preamble (gnrc_netif_t *netif) |
Get the GNRC_GOMACH_INTERNAL_INFO_GOT_PREAMBLE flag of the device. More... | |
static void | gnrc_gomach_set_cp_end (gnrc_netif_t *netif, bool cp_end) |
Set the GNRC_GOMACH_INTERNAL_INFO_CP_END flag of the device. More... | |
static bool | gnrc_gomach_get_cp_end (gnrc_netif_t *netif) |
Get the GNRC_GOMACH_INTERNAL_INFO_CP_END flag of the device. More... | |
static void | gnrc_gomach_set_vTDMA_end (gnrc_netif_t *netif, bool vtdma_end) |
Set the GNRC_GOMACH_INTERNAL_INFO_VTDMA_END flag of the device. More... | |
static bool | gnrc_gomach_get_vTDMA_end (gnrc_netif_t *netif) |
Get the GNRC_GOMACH_INTERNAL_INFO_VTDMA_END flag of the device. More... | |
static void | gnrc_gomach_set_unintd_preamble (gnrc_netif_t *netif, bool uintd_preamble) |
Set the GNRC_GOMACH_INTERNAL_INFO_UNINTD_PREAMBLE flag of the device. More... | |
static bool | gnrc_gomach_get_unintd_preamble (gnrc_netif_t *netif) |
Get the GNRC_GOMACH_INTERNAL_INFO_UNINTD_PREAMBLE flag of the device. More... | |
static void | gnrc_gomach_set_update (gnrc_netif_t *netif, bool update) |
Set the GNRC_GOMACH_INTERNAL_INFO_ND_UPDATE flag of the device. More... | |
static bool | gnrc_gomach_get_update (gnrc_netif_t *netif) |
Get the GNRC_GOMACH_INTERNAL_INFO_ND_UPDATE flag of the device. More... | |
static void | gnrc_gomach_set_duty_cycle_start (gnrc_netif_t *netif, bool start) |
Set the GNRC_GOMACH_INTERNAL_INFO_DUTY_CYCLE_START flag of the device. More... | |
static bool | gnrc_gomach_get_duty_cycle_start (gnrc_netif_t *netif) |
Get the GNRC_GOMACH_INTERNAL_INFO_DUTY_CYCLE_START flag of the device. More... | |
static void | gnrc_gomach_set_phase_backoff (gnrc_netif_t *netif, bool backoff) |
Set the GNRC_GOMACH_INTERNAL_INFO_PHASE_BACKOFF flag of the device. More... | |
static bool | gnrc_gomach_get_phase_backoff (gnrc_netif_t *netif) |
Get the GNRC_GOMACH_INTERNAL_INFO_PHASE_BACKOFF flag of the device. More... | |
static void | gnrc_gomach_set_beacon_fail (gnrc_netif_t *netif, bool fail) |
Set the GNRC_GOMACH_INTERNAL_INFO_BEACON_FAIL flag of the device. More... | |
static bool | gnrc_gomach_get_beacon_fail (gnrc_netif_t *netif) |
Get the GNRC_GOMACH_INTERNAL_INFO_BEACON_FAIL flag of the device. More... | |
static void | gnrc_gomach_set_buffer_full (gnrc_netif_t *netif, bool full) |
Set the GNRC_GOMACH_INTERNAL_INFO_BUFFER_FULL flag of the device. More... | |
static bool | gnrc_gomach_get_buffer_full (gnrc_netif_t *netif) |
Get the GNRC_GOMACH_INTERNAL_INFO_BUFFER_FULL flag of the device. More... | |
static void | gnrc_gomach_set_enter_new_cycle (gnrc_netif_t *netif, bool enter) |
Set the GNRC_GOMACH_INTERNAL_INFO_ENTER_NEW_CYCLE flag of the device. More... | |
static bool | gnrc_gomach_get_enter_new_cycle (gnrc_netif_t *netif) |
Get the GNRC_GOMACH_INTERNAL_INFO_ENTER_NEW_CYCLE flag of the device. More... | |
static void | gnrc_gomach_set_got_preamble_ack (gnrc_netif_t *netif, bool got) |
Set the GNRC_GOMACH_INTERNAL_INFO_GOT_PREAMBLEACK flag of the device. More... | |
static bool | gnrc_gomach_get_got_preamble_ack (gnrc_netif_t *netif) |
Get the GNRC_GOMACH_INTERNAL_INFO_GOT_PREAMBLEACK flag of the device. More... | |
static void | gnrc_gomach_set_on_pubchan_1 (gnrc_netif_t *netif, bool on_pubchan_1) |
Set the GNRC_GOMACH_INTERNAL_INFO_ON_PUBCHAN_1 flag of the device. More... | |
static bool | gnrc_gomach_get_on_pubchan_1 (gnrc_netif_t *netif) |
Get the GNRC_GOMACH_INTERNAL_INFO_ON_PUBCHAN_1 flag of the device. More... | |
static void | gnrc_gomach_set_max_pream_interv (gnrc_netif_t *netif, bool max) |
Set the GNRC_GOMACH_INTERNAL_INFO_MAX_PREAM_INTERV flag of the device. More... | |
static bool | gnrc_gomach_get_max_pream_interv (gnrc_netif_t *netif) |
Get the GNRC_GOMACH_INTERNAL_INFO_MAX_PREAM_INTERV flag of the device. More... | |
uint64_t | gnrc_gomach_phase_now (gnrc_netif_t *netif) |
Get device's current phase. More... | |
void | gnrc_gomach_set_netdev_state (gnrc_netif_t *netif, netopt_state_t devstate) |
Shortcut to set the state of netdev. More... | |
static void | gnrc_gomach_set_autoack (gnrc_netif_t *netif, netopt_enable_t autoack) |
Set the auto-ACK parameter of the device. More... | |
static void | gnrc_gomach_set_ack_req (gnrc_netif_t *netif, netopt_enable_t ack_req) |
Set the ACK-require parameter of the device. More... | |
static netopt_state_t | gnrc_gomach_get_netdev_state (gnrc_netif_t *netif) |
Shortcut to get the state of netdev. More... | |
static void | gnrc_gomach_turn_channel (gnrc_netif_t *netif, uint16_t channel_num) |
Turn the radio to a specific channel. More... | |
int | _gnrc_gomach_transmit (gnrc_netif_t *netif, gnrc_pktsnip_t *pkt) |
send a packet over the network interface in GoMacH | |
bool | gnrc_gomach_check_duplicate (gnrc_netif_t *netif, gnrc_gomach_packet_info_t *pa_info) |
Check if the received packet is a duplicate packet. More... | |
int | gnrc_gomach_send (gnrc_netif_t *netif, gnrc_pktsnip_t *pkt, netopt_enable_t csma_enable) |
Send a pktsnip in GoMacH. More... | |
int | gnrc_gomach_send_preamble_ack (gnrc_netif_t *netif, gnrc_gomach_packet_info_t *info) |
Reply a preamble-ACK packet in GoMacH. More... | |
int | gnrc_gomach_send_beacon (gnrc_netif_t *netif) |
Broadcast a beacon packet in GoMacH. More... | |
int | gnrc_gomach_dispatch_defer (gnrc_pktsnip_t *buffer[], gnrc_pktsnip_t *pkt) |
Store the received packet to the dispatch buffer. More... | |
void | gnrc_gomach_indicator_update (gnrc_netif_t *netif, gnrc_pktsnip_t *pkt, gnrc_gomach_packet_info_t *pa_info) |
Update the queue-length indicator of the packet sender. More... | |
void | gnrc_gomach_cp_packet_process (gnrc_netif_t *netif) |
Process packets received during the CP (wake-up) period of GoMacH. More... | |
void | gnrc_gomach_init_choose_subchannel (gnrc_netif_t *netif) |
Choose a sub-channel for a device running GoMacH. More... | |
int | gnrc_gomach_bcast_subchann_seq (gnrc_netif_t *netif, netopt_enable_t use_csma) |
Broadcast the chosen sub-channel sequence to the device's neighbors. More... | |
int | gnrc_gomach_send_preamble (gnrc_netif_t *netif, netopt_enable_t csma_enable) |
Send a preamble packet to the targeted neighbor. More... | |
void | gnrc_gomach_process_preamble_ack (gnrc_netif_t *netif, gnrc_pktsnip_t *pkt) |
Process the received preamble-ACK packet to get phase-locked with the sender. More... | |
void | gnrc_gomach_process_pkt_in_wait_preamble_ack (gnrc_netif_t *netif) |
Process the received packets to when waiting for the preamble-ACK packet. More... | |
int | gnrc_gomach_send_data (gnrc_netif_t *netif, netopt_enable_t csma_enable) |
Send a data packet to the targeted neighbor. More... | |
bool | gnrc_gomach_find_next_tx_neighbor (gnrc_netif_t *netif) |
Find a neighbor that is next to send packet to. More... | |
void | gnrc_gomach_beacon_process (gnrc_netif_t *netif, gnrc_pktsnip_t *pkt) |
Process the received beacon packet. More... | |
void | gnrc_gomach_packet_process_in_wait_beacon (gnrc_netif_t *netif) |
Process the received packets when waiting for the beacon during t2k procedure in GoMacH. More... | |
void | gnrc_gomach_packet_process_in_vtdma (gnrc_netif_t *netif) |
Process the received packets in the vTDMA period in GoMacH. More... | |
void | gnrc_gomach_update_neighbor_phase (gnrc_netif_t *netif) |
Update the TX neighbors' phases in GoMacH. More... | |
void | gnrc_gomach_update_neighbor_pubchan (gnrc_netif_t *netif) |
Update the TX neighbors' public channel phase in GoMacH. More... | |
int gnrc_gomach_bcast_subchann_seq | ( | gnrc_netif_t * | netif, |
netopt_enable_t | use_csma | ||
) |
Broadcast the chosen sub-channel sequence to the device's neighbors.
[in] | netif | the network interface. |
[in] | use_csma | value of csma-enable parameter. |
void gnrc_gomach_beacon_process | ( | gnrc_netif_t * | netif, |
gnrc_pktsnip_t * | pkt | ||
) |
Process the received beacon packet.
[in,out] | netif | the network interface. |
[in] | pkt | ptr to the received beacon. |
bool gnrc_gomach_check_duplicate | ( | gnrc_netif_t * | netif, |
gnrc_gomach_packet_info_t * | pa_info | ||
) |
Check if the received packet is a duplicate packet.
[in] | netif | the network interface. |
[in] | pa_info | ptr to received packet's parsed information. |
void gnrc_gomach_cp_packet_process | ( | gnrc_netif_t * | netif | ) |
Process packets received during the CP (wake-up) period of GoMacH.
[in,out] | netif | the network interface. |
int gnrc_gomach_dispatch_defer | ( | gnrc_pktsnip_t * | buffer[], |
gnrc_pktsnip_t * | pkt | ||
) |
Store the received packet to the dispatch buffer.
[in,out] | buffer | RX dispatch packet buffer |
[in] | pkt | received packet |
bool gnrc_gomach_find_next_tx_neighbor | ( | gnrc_netif_t * | netif | ) |
Find a neighbor that is next to send packet to.
[in,out] | netif | the network interface. |
|
inlinestatic |
Get the GNRC_GOMACH_INTERNAL_INFO_BEACON_FAIL flag of the device.
[in] | netif | the network interface. |
Definition at line 452 of file gomach_internal.h.
|
inlinestatic |
Get the GNRC_GOMACH_INTERNAL_INFO_BUFFER_FULL flag of the device.
[in] | netif | the network interface. |
Definition at line 483 of file gomach_internal.h.
|
inlinestatic |
Get the GNRC_GOMACH_INTERNAL_INFO_CP_END flag of the device.
[in] | netif | the network interface. |
Definition at line 266 of file gomach_internal.h.
|
inlinestatic |
Get the GNRC_GOMACH_INTERNAL_INFO_DUTY_CYCLE_START flag of the device.
[in] | netif | the network interface. |
Definition at line 390 of file gomach_internal.h.
|
inlinestatic |
Get the GNRC_GOMACH_INTERNAL_INFO_ENTER_NEW_CYCLE flag of the device.
[in] | netif | the network interface. |
Definition at line 514 of file gomach_internal.h.
|
inlinestatic |
Get the GNRC_GOMACH_INTERNAL_INFO_GOT_PREAMBLE flag of the device.
[in] | netif | the network interface. |
Definition at line 235 of file gomach_internal.h.
|
inlinestatic |
Get the GNRC_GOMACH_INTERNAL_INFO_GOT_PREAMBLEACK flag of the device.
[in] | netif | the network interface. |
Definition at line 545 of file gomach_internal.h.
|
inlinestatic |
Get the GNRC_GOMACH_INTERNAL_INFO_MAX_PREAM_INTERV flag of the device.
[in] | netif | the network interface. |
Definition at line 607 of file gomach_internal.h.
|
inlinestatic |
Shortcut to get the state of netdev.
[in] | netif | the network interface. |
Definition at line 671 of file gomach_internal.h.
|
inlinestatic |
Get the GNRC_GOMACH_INTERNAL_INFO_ON_PUBCHAN_1 flag of the device.
[in] | netif | the network interface. |
Definition at line 576 of file gomach_internal.h.
|
inlinestatic |
Get the GNRC_GOMACH_INTERNAL_INFO_PHASE_BACKOFF flag of the device.
[in] | netif | the network interface. |
Definition at line 421 of file gomach_internal.h.
|
inlinestatic |
Get the GNRC_GOMACH_INFO_PKT_RECEIVED flag of the device.
[in] | netif | the network interface. |
Definition at line 173 of file gomach_internal.h.
|
inlinestatic |
Get the GNRC_GOMACH_INTERNAL_INFO_QUIT_CYCLE flag of the device.
[in] | netif | the network interface. |
Definition at line 204 of file gomach_internal.h.
|
inlinestatic |
Get the GNRC_GOMACH_INFO_TX_FINISHED flag of the device.
[in] | netif | the network interface. |
Definition at line 142 of file gomach_internal.h.
|
inlinestatic |
Get the GNRC_GOMACH_INTERNAL_INFO_UNINTD_PREAMBLE flag of the device.
[in] | netif | the network interface. |
Definition at line 328 of file gomach_internal.h.
|
inlinestatic |
Get the GNRC_GOMACH_INTERNAL_INFO_ND_UPDATE flag of the device.
[in] | netif | the network interface. |
Definition at line 359 of file gomach_internal.h.
|
inlinestatic |
Get the GNRC_GOMACH_INTERNAL_INFO_VTDMA_END flag of the device.
[in] | netif | the network interface. |
Definition at line 297 of file gomach_internal.h.
void gnrc_gomach_indicator_update | ( | gnrc_netif_t * | netif, |
gnrc_pktsnip_t * | pkt, | ||
gnrc_gomach_packet_info_t * | pa_info | ||
) |
Update the queue-length indicator of the packet sender.
[in,out] | netif | the network interface. |
[in] | pkt | received packet |
[in] | pa_info | ptr to the info of the received packet. |
void gnrc_gomach_init_choose_subchannel | ( | gnrc_netif_t * | netif | ) |
Choose a sub-channel for a device running GoMacH.
[in,out] | netif | the network interface. |
void gnrc_gomach_packet_process_in_vtdma | ( | gnrc_netif_t * | netif | ) |
Process the received packets in the vTDMA period in GoMacH.
[in,out] | netif | the network interface. |
void gnrc_gomach_packet_process_in_wait_beacon | ( | gnrc_netif_t * | netif | ) |
Process the received packets when waiting for the beacon during t2k procedure in GoMacH.
[in,out] | netif | the network interface. |
uint64_t gnrc_gomach_phase_now | ( | gnrc_netif_t * | netif | ) |
Get device's current phase.
[in] | netif | the network interface. |
void gnrc_gomach_process_pkt_in_wait_preamble_ack | ( | gnrc_netif_t * | netif | ) |
Process the received packets to when waiting for the preamble-ACK packet.
[in,out] | netif | the network interface. |
void gnrc_gomach_process_preamble_ack | ( | gnrc_netif_t * | netif, |
gnrc_pktsnip_t * | pkt | ||
) |
Process the received preamble-ACK packet to get phase-locked with the sender.
[in,out] | netif | the network interface. |
[in] | pkt | ptr to the received preamble-ACK. |
int gnrc_gomach_send | ( | gnrc_netif_t * | netif, |
gnrc_pktsnip_t * | pkt, | ||
netopt_enable_t | csma_enable | ||
) |
Send a pktsnip in GoMacH.
[in] | netif | the network interface. |
[in] | pkt | ptr to the packet for sending. |
[in] | csma_enable | value of csma-enable parameter. |
int gnrc_gomach_send_beacon | ( | gnrc_netif_t * | netif | ) |
Broadcast a beacon packet in GoMacH.
[in] | netif | the network interface. |
int gnrc_gomach_send_data | ( | gnrc_netif_t * | netif, |
netopt_enable_t | csma_enable | ||
) |
Send a data packet to the targeted neighbor.
[in,out] | netif | the network interface. |
[in] | csma_enable | value of csma-enable parameter. |
int gnrc_gomach_send_preamble | ( | gnrc_netif_t * | netif, |
netopt_enable_t | csma_enable | ||
) |
Send a preamble packet to the targeted neighbor.
[in] | netif | the network interface. |
[in] | csma_enable | value of csma-enable parameter. |
int gnrc_gomach_send_preamble_ack | ( | gnrc_netif_t * | netif, |
gnrc_gomach_packet_info_t * | info | ||
) |
Reply a preamble-ACK packet in GoMacH.
[in] | netif | the network interface. |
[in] | info | ptr to the info of the preamble packet. |
|
inlinestatic |
Set the ACK-require parameter of the device.
[in,out] | netif | the network interface. |
[in] | ack_req | value for the ACK-require parameter. |
Definition at line 653 of file gomach_internal.h.
|
inlinestatic |
Set the auto-ACK parameter of the device.
[in,out] | netif | the network interface. |
[in] | autoack | value for the auto-ACK parameter. |
Definition at line 636 of file gomach_internal.h.
|
inlinestatic |
Set the GNRC_GOMACH_INTERNAL_INFO_BEACON_FAIL flag of the device.
[in,out] | netif | the network interface. |
[in] | fail | value for GoMacH's GNRC_GOMACH_INTERNAL_INFO_BEACON_FAIL flag. |
Definition at line 434 of file gomach_internal.h.
|
inlinestatic |
Set the GNRC_GOMACH_INTERNAL_INFO_BUFFER_FULL flag of the device.
[in,out] | netif | the network interface. |
[in] | full | value for GoMacH's GNRC_GOMACH_INTERNAL_INFO_BUFFER_FULL flag. |
Definition at line 465 of file gomach_internal.h.
|
inlinestatic |
Set the GNRC_GOMACH_INTERNAL_INFO_CP_END flag of the device.
[in,out] | netif | the network interface. |
[in] | cp_end | value for GoMacH's GNRC_GOMACH_INTERNAL_INFO_CP_END flag. |
Definition at line 248 of file gomach_internal.h.
|
inlinestatic |
Set the GNRC_GOMACH_INTERNAL_INFO_DUTY_CYCLE_START flag of the device.
[in,out] | netif | the network interface. |
[in] | start | value for GoMacH's GNRC_GOMACH_INTERNAL_INFO_DUTY_CYCLE_START flag. |
Definition at line 372 of file gomach_internal.h.
|
inlinestatic |
Set the GNRC_GOMACH_INTERNAL_INFO_ENTER_NEW_CYCLE flag of the device.
[in,out] | netif | the network interface. |
[in] | enter | value for GoMacH's GNRC_GOMACH_INTERNAL_INFO_ENTER_NEW_CYCLE flag. |
Definition at line 496 of file gomach_internal.h.
|
inlinestatic |
Set the GNRC_GOMACH_INTERNAL_INFO_GOT_PREAMBLE flag of the device.
[in,out] | netif | the network interface. |
[in] | got_preamble | value for GoMacH's GNRC_GOMACH_INTERNAL_INFO_GOT_PREAMBLE flag. |
Definition at line 217 of file gomach_internal.h.
|
inlinestatic |
Set the GNRC_GOMACH_INTERNAL_INFO_GOT_PREAMBLEACK flag of the device.
[in,out] | netif | the network interface. |
[in] | got | value for GoMacH's GNRC_GOMACH_INTERNAL_INFO_GOT_PREAMBLEACK flag. |
Definition at line 527 of file gomach_internal.h.
|
inlinestatic |
Set the GNRC_GOMACH_INTERNAL_INFO_MAX_PREAM_INTERV flag of the device.
[in,out] | netif | the network interface. |
[in] | max | value for GoMacH's GNRC_GOMACH_INTERNAL_INFO_MAX_PREAM_INTERV flag. |
Definition at line 589 of file gomach_internal.h.
void gnrc_gomach_set_netdev_state | ( | gnrc_netif_t * | netif, |
netopt_state_t | devstate | ||
) |
Shortcut to set the state of netdev.
[in] | netif | ptr to the network interface |
[in] | devstate | new state for netdev |
|
inlinestatic |
Set the GNRC_GOMACH_INTERNAL_INFO_ON_PUBCHAN_1 flag of the device.
[in,out] | netif | the network interface. |
[in] | on_pubchan_1 | value for GoMacH's GNRC_GOMACH_INTERNAL_INFO_ON_PUBCHAN_1 flag. |
Definition at line 558 of file gomach_internal.h.
|
inlinestatic |
Set the GNRC_GOMACH_INTERNAL_INFO_PHASE_BACKOFF flag of the device.
[in,out] | netif | the network interface. |
[in] | backoff | value for GoMacH's GNRC_GOMACH_INTERNAL_INFO_PHASE_BACKOFF flag. |
Definition at line 403 of file gomach_internal.h.
|
inlinestatic |
Set the GNRC_GOMACH_INFO_PKT_RECEIVED flag of the device.
[in,out] | netif | the network interface. |
[in] | received | value for GoMacH's GNRC_GOMACH_INFO_PKT_RECEIVED flag. |
Definition at line 155 of file gomach_internal.h.
|
inlinestatic |
Set the GNRC_GOMACH_INTERNAL_INFO_QUIT_CYCLE flag of the device.
[in,out] | netif | the network interface. |
[in] | quit | value for GoMacH's GNRC_GOMACH_INTERNAL_INFO_QUIT_CYCLE flag. |
Definition at line 186 of file gomach_internal.h.
|
inlinestatic |
Set the GNRC_GOMACH_INFO_TX_FINISHED flag of the device.
[in,out] | netif | the network interface. |
[in] | tx_finish | value for GoMacH's GNRC_GOMACH_INFO_TX_FINISHED flag. |
Definition at line 124 of file gomach_internal.h.
|
inlinestatic |
Set the GNRC_GOMACH_INTERNAL_INFO_UNINTD_PREAMBLE flag of the device.
[in,out] | netif | the network interface. |
[in] | uintd_preamble | value for GoMacH's GNRC_GOMACH_INTERNAL_INFO_UNINTD_PREAMBLE flag. |
Definition at line 310 of file gomach_internal.h.
|
inlinestatic |
Set the GNRC_GOMACH_INTERNAL_INFO_ND_UPDATE flag of the device.
[in,out] | netif | the network interface. |
[in] | update | value for GoMacH's GNRC_GOMACH_INTERNAL_INFO_ND_UPDATE flag. |
Definition at line 341 of file gomach_internal.h.
|
inlinestatic |
Set the GNRC_GOMACH_INTERNAL_INFO_VTDMA_END flag of the device.
[in,out] | netif | the network interface. |
[in] | vtdma_end | value for GoMacH's GNRC_GOMACH_INTERNAL_INFO_VTDMA_END flag. |
Definition at line 279 of file gomach_internal.h.
|
inlinestatic |
Turn the radio to a specific channel.
[in,out] | netif | the network interface. |
[in] | channel_num | targeted channel number to turn to. |
Definition at line 693 of file gomach_internal.h.
void gnrc_gomach_update_neighbor_phase | ( | gnrc_netif_t * | netif | ) |
Update the TX neighbors' phases in GoMacH.
[in,out] | netif | the network interface. |
void gnrc_gomach_update_neighbor_pubchan | ( | gnrc_netif_t * | netif | ) |
Update the TX neighbors' public channel phase in GoMacH.
[in,out] | netif | the network interface. |