MySensors Library & Examples  2.3.2-62-ge298769
Public Member Functions | Public Attributes | List of all members
PJON< Strategy > Class Template Reference

Detailed Description

template<typename Strategy>
class PJON< Strategy >

Definition at line 77 of file PJON.h.

+ Collaboration diagram for PJON< Strategy >:

Public Member Functions

 PJON (uint8_t device_id)
 
 PJON (const uint8_t *b_id, uint8_t device_id)
 
void begin ()
 
uint16_t compose_packet (PJON_Packet_Info info, uint8_t *destination, const void *source, uint16_t length)
 
uint8_t device_id () const
 
uint16_t dispatch (const PJON_Packet_Info &info, const void *packet, uint16_t length, uint32_t timing=0, uint16_t packet_index=PJON_FAIL)
 
const uint8_t * get_bus_id () const
 
uint16_t get_packets_count (uint8_t device_id=PJON_NOT_ASSIGNED) const
 
PJON_Packet_Info fill_info (uint8_t rx_id, uint8_t header, uint16_t packet_id, uint16_t rx_port)
 
uint8_t packet_overhead (uint8_t header=PJON_NO_HEADER) const
 
void parse (const uint8_t *packet, PJON_Packet_Info &packet_info) const
 
uint16_t receive ()
 
uint16_t receive (uint32_t duration)
 
void remove (uint16_t index)
 
void remove_all_packets (uint8_t device_id=0)
 
bool reset_packet (uint16_t id)
 
uint16_t reply (const void *payload, uint16_t length)
 
uint16_t reply_blocking (const void *payload, uint16_t length)
 
uint16_t send (uint8_t rx_id, const void *payload, uint16_t length, uint8_t header=PJON_NO_HEADER, uint16_t packet_id=0, uint16_t rx_port=PJON_BROADCAST)
 
uint16_t send (const PJON_Packet_Info &info, const void *payload, uint16_t length)
 
uint16_t forward (PJON_Packet_Info info, const void *payload, uint16_t length)
 
uint16_t forward_blocking (PJON_Packet_Info info, const void *payload, uint16_t length)
 
uint16_t send_repeatedly (uint8_t rx_id, const void *payload, uint16_t length, uint32_t timing, uint8_t header=PJON_NO_HEADER, uint16_t packet_id=0, uint16_t rx_port=PJON_BROADCAST)
 
uint16_t send_repeatedly (const PJON_Packet_Info &info, const void *payload, uint16_t length, uint32_t timing)
 
uint16_t send_packet (const uint8_t *payload, uint16_t length)
 
uint16_t send_packet (uint8_t rx_id, const void *payload, uint16_t length, uint8_t header=PJON_NO_HEADER, uint16_t packet_id=0, uint16_t rx_port=PJON_BROADCAST)
 
uint16_t send_packet (const PJON_Packet_Info &info, const void *payload, uint16_t length)
 
uint16_t send_packet_blocking (const PJON_Packet_Info &packet_info, const void *payload, uint16_t length, uint32_t timeout=3500000)
 
uint16_t send_packet_blocking (uint8_t rx_id, const void *payload, uint16_t length, uint8_t header=PJON_NO_HEADER, uint16_t packet_id=0, uint16_t rx_port=PJON_BROADCAST, uint32_t timeout=3500000)
 
void send_acknowledge ()
 
void set_config_bit (bool new_state, uint8_t bit)
 
void set_acknowledge (bool state)
 
void set_crc_32 (bool state)
 
void set_communication_mode (bool mode)
 
void set_custom_pointer (void *pointer)
 
void set_default ()
 
void set_error (PJON_Error e)
 
void set_id (uint8_t id)
 
void set_bus_id (const uint8_t *b_id)
 
void include_sender_info (bool state)
 
void include_mac (bool state)
 
void set_shared_network (bool state)
 
void set_packet_auto_deletion (bool state)
 
void set_random_seed (uint8_t seed)
 
void set_receiver (PJON_Receiver r)
 
void set_router (bool state)
 
uint16_t update ()
 

Public Attributes

Strategy strategy
 
uint8_t config = PJON_TX_INFO_BIT | PJON_ACK_REQ_BIT
 
uint8_t data [PJON_PACKET_MAX_LENGTH]
 
PJON_Packet_Info last_packet_info
 
PJON_Packet packets [PJON_MAX_PACKETS]
 
PJON_Endpoint tx
 

The documentation for this class was generated from the following file: