pic_packet.c File Reference

#include "pic_packet.h"

Include dependency graph for pic_packet.c:

Go to the source code of this file.

Functions

void pkt_calc_check_byte (rf_packet *packet)
uns8 pkt_check_check_byte (rf_packet *packet)
void pkt_init (uns16 my_addr)
uns8 pkt_load_rx (rf_packet *pkt_in)
uns8 pkt_print_packet (rf_packet *my_packet)
void pkt_process_tx_queue ()
uns8 pkt_queue_packet (rf_packet *packet, uns8 resend)
uns8 pkt_seen (uns16 pkt_id, uns16 source_addr)
uns8 pkt_send (uns16 dest_addr, uns8 *payload, uns8 resend)

Variables

uns16 pkt_my_addr = 0x66
uns16 pkt_my_next_pkt_id = 0
static seen_packet pkt_seen_list [PKT_SEEN_LIST_SIZE]
uns8 pkt_seen_list_last = 0
static sending_item pkt_tx_queue [PKT_TX_QUEUE_SIZE]


Function Documentation

void pkt_calc_check_byte ( rf_packet packet  ) 

Definition at line 310 of file pic_packet.c.

References _rf_packet::a, _rf_packet_det::check_byte, _rf_packet::d, PKT_PACKET_SIZE, and uns8.

Referenced by pkt_load_rx(), and pkt_send().

Here is the caller graph for this function:

uns8 pkt_check_check_byte ( rf_packet packet  ) 

Definition at line 321 of file pic_packet.c.

References _rf_packet::a, _rf_packet_det::check_byte, _rf_packet::d, PKT_PACKET_SIZE, and uns8.

Referenced by pkt_load_rx().

Here is the caller graph for this function:

void pkt_init ( uns16  my_addr  ) 

uns8 pkt_load_rx ( rf_packet pkt_in  ) 

uns8 pkt_print_packet ( rf_packet my_packet  ) 

void pkt_process_tx_queue (  ) 

uns8 pkt_queue_packet ( rf_packet packet,
uns8  resend 
)

Definition at line 168 of file pic_packet.c.

References _sending_item::flag, PKT_FLAG_DELETED, PKT_PACKET_SIZE, PKT_STATUS_QUEUED, PKT_STATUS_TX_QUEUE_FULL, _sending_item::sent_count, serial_print_int(), serial_print_str(), and uns8.

Referenced by pkt_load_rx(), and pkt_send().

Here is the call graph for this function:

Here is the caller graph for this function:

uns8 pkt_seen ( uns16  pkt_id,
uns16  source_addr 
)

Definition at line 23 of file pic_packet.c.

References uns8.

Referenced by pkt_load_rx().

Here is the caller graph for this function:

uns8 pkt_send ( uns16  dest_addr,
uns8 *  payload,
uns8  resend 
)


Variable Documentation

uns16 pkt_my_addr = 0x66

Definition at line 19 of file pic_packet.c.

Referenced by pkt_init(), pkt_load_rx(), and pkt_send().

uns16 pkt_my_next_pkt_id = 0

Definition at line 20 of file pic_packet.c.

Referenced by pkt_send().

seen_packet pkt_seen_list[PKT_SEEN_LIST_SIZE] [static]

Definition at line 15 of file pic_packet.c.

Definition at line 18 of file pic_packet.c.

Referenced by pkt_load_rx().

sending_item pkt_tx_queue[PKT_TX_QUEUE_SIZE] [static]

Definition at line 16 of file pic_packet.c.


Generated on Mon Apr 28 08:13:26 2008 for Pic Pack by  doxygen 1.5.5