AskSin++
Public Types | Public Member Functions | List of all members
as::MultiChannelDevice< HalType, ChannelType, ChannelCount, List0Type > Class Template Reference
Inheritance diagram for as::MultiChannelDevice< HalType, ChannelType, ChannelCount, List0Type >:
Inheritance graph
[legend]
Collaboration diagram for as::MultiChannelDevice< HalType, ChannelType, ChannelCount, List0Type >:
Collaboration graph
[legend]

Public Types

typedef ChannelDevice< HalType, ChannelType, ChannelCount, List0Type > DeviceType
 
- Public Types inherited from as::ChannelDevice< HalType, ChannelType, ChannelCount, List0 >
typedef Device< HalType, List0 > DeviceType
 
- Public Types inherited from as::Device< HalType, List0 >
typedef HalType::LedType LedType
 
typedef HalType::BatteryType BatteryType
 
typedef HalType::RadioType RadioType
 
typedef HalType::BuzzerType BuzzerType
 
typedef List0 List0
 

Public Member Functions

 MultiChannelDevice (const DeviceInfo &i, uint16_t addr)
 
- Public Member Functions inherited from as::ChannelDevice< HalType, ChannelType, ChannelCount, List0 >
 ChannelDevice (const DeviceInfo &i, uint16_t addr)
 
void registerChannel (ChannelType &ch, uint8_t num)
 
void layoutChannels ()
 
void channels (uint8_t num)
 
uint8_t channels () const
 
void dumpSize ()
 
UserStorage getUserStorage ()
 
uint16_t checksum ()
 
List0 & getList0 ()
 
bool init (HalType &hal)
 
void initDone ()
 
void firstinit ()
 
void reset ()
 
void bootloader ()
 
void startPairing ()
 
ChannelType & channel (uint8_t ch)
 
bool pollRadio ()
 
bool aesActive ()
 
bool validSignature (Message &msg)
 
bool validSignature (uint8_t ch, Message &msg)
 
bool process (Message &msg)
 
GenericList findList (uint8_t ch, const Peer &peer, uint8_t numlist)
 
void sendPeerEvent (Message &msg, const ChannelType &ch)
 
- Public Member Functions inherited from as::Device< HalType, List0 >
 Device (const DeviceInfo &i, uint16_t addr, List0 &l, uint8_t ch)
 
LedType & led ()
 
BatteryType & battery ()
 
const BatteryType & battery () const
 
RadioType & radio ()
 
BuzzerType & buzzer ()
 
KeyStorekeystore ()
 
Activityactivity ()
 
Messagemessage ()
 
void channels (uint8_t num)
 
uint8_t channels () const
 
bool hasChannel (uint8_t number) const
 
bool isRepeat (const Message &m)
 
void setHal (HalType &h)
 
HalType & getHal ()
 
StorageConfig getConfigArea ()
 
uint8_t getConfigByte (uint8_t offset)
 
void getDeviceID (HMID &id)
 
void getDeviceSerial (uint8_t *serial)
 
bool isDeviceSerial (const uint8_t *serial)
 
bool isDeviceID (const HMID &id)
 
void getDeviceModel (uint8_t *model)
 
void getDeviceInfo (uint8_t *di)
 
HMID getMasterID ()
 
const List0 & getList0 ()
 
bool pollRadio ()
 
uint8_t nextcount ()
 
virtual void configChanged ()
 
virtual bool process (__attribute__((unused)) Message &msg)
 
bool isBroadcastMsg (Message msg)
 
bool send (Message &msg, const HMID &to)
 
bool send (Message &msg)
 
void sendAck (Message &msg, uint8_t flag=0x00)
 
void sendAck (Message &msg, ChannelType &ch)
 
void sendAck2 (Message &msg, uint8_t flag=0x00)
 
void sendNack (Message &msg)
 
void sendDeviceInfo ()
 
void sendDeviceInfo (const HMID &to, uint8_t count)
 
void sendSerialInfo (const HMID &to, uint8_t count)
 
void sendInfoActuatorStatus (const HMID &to, uint8_t count, ChannelType &ch, bool ack=true)
 
void sendInfoParamResponsePairs (HMID to, uint8_t count, const GenericList &list)
 
void sendInfoPeerList (HMID to, uint8_t count, const ChannelType &channel)
 
void sendMasterEvent (Message &msg)
 
void sendPeerEvent (Message &msg, const ChannelType &ch)
 
void broadcastPeerEvent (Message &msg, const ChannelType &ch)
 
void broadcastEvent (Message &msg, const ChannelType &ch)
 
void broadcastEvent (Message &msg)
 
void writeList (const GenericList &list, const uint8_t *data, uint8_t length)
 
bool waitResponse (const Message &msg, Message &response, uint8_t timeout)
 
void sendAckAes (Message &msg, const uint8_t *data)
 
bool requestSignature (const Message &msg)
 
bool processChallenge (const Message &msg, const uint8_t *challenge, uint8_t keyidx)
 
bool waitForAesResponse (const HMID &from, Message &answer, uint8_t timeout)
 

Additional Inherited Members

- Protected Attributes inherited from as::Device< HalType, List0 >
Message msg
 
KeyStore kstore
 
const DeviceInfoinfo
 
uint8_t numChannels
 

Detailed Description

template<class HalType, class ChannelType, int ChannelCount, class List0Type = List0>
class as::MultiChannelDevice< HalType, ChannelType, ChannelCount, List0Type >

Definition at line 505 of file MultiChannelDevice.h.