AskSin++
Public Member Functions | Protected Types | Protected Attributes | List of all members
as::SwitchChannel< HalType, PeerCount, List0Type, IODriver > Class Template Reference
Inheritance diagram for as::SwitchChannel< HalType, PeerCount, List0Type, IODriver >:
Inheritance graph
[legend]
Collaboration diagram for as::SwitchChannel< HalType, PeerCount, List0Type, IODriver >:
Collaboration graph
[legend]

Public Member Functions

void init (uint8_t p, bool value=false)
 
uint8_t flags () const
 
virtual void switchState (__attribute__((unused)) uint8_t oldstate, uint8_t newstate, __attribute__((unused)) uint32_t delay)
 
- Public Member Functions inherited from as::ActorChannel< HalType, SwitchList1, SwitchList3, PeerCount, List0Type, SwitchStateMachine >
bool changed () const
 
void changed (bool c)
 
void setup (Device< HalType, List0Type > *dev, uint8_t number, uint16_t addr)
 
uint8_t status () const
 
void status (uint8_t stat, uint16_t delay)
 
uint8_t flags () const
 
void stop ()
 
bool process (__attribute__((unused)) const ActionCommandMsg &msg)
 
bool process (const ActionSetMsg &msg)
 
bool process (const RemoteEventMsg &msg)
 
bool process (const SensorEventMsg &msg)
 
- Public Member Functions inherited from as::Channel< HalType, SwitchList1, SwitchList3, EmptyList, PeerCount, List0Type, EmptyList >
DeviceTypedevice ()
 
const DeviceTypedevice () const
 
uint8_t number () const
 
uint16_t address () const
 
uint8_t peers () const
 
bool changed () const
 
void changed (bool c)
 
void inhibit (bool value)
 
bool inhibit () const
 
bool aesActive () const
 
void setup (Device< HalType, List0Type > *dev, uint8_t number, uint16_t addr)
 
uint16_t size () const
 
bool has (const Peer &p) const
 
uint8_t peerfor (const HMID &hmid) const
 
Peer peer (uint8_t idx) const
 
bool peer (const Peer &p)
 
bool peer (const Peer &p1, const Peer &p2) const
 
bool deletepeer (uint8_t idx) const
 
bool deletepeer (const Peer &p) const
 
uint8_t findpeer () const
 
void firstinit ()
 
SwitchList1 getList1 () const
 
EmptyList getList2 () const
 
SwitchList3 getList3 (const Peer &p) const
 
SwitchList3 getList3 (uint8_t pidx) const
 
EmptyList getList4 (const Peer &p) const
 
EmptyList getList4 (uint8_t pidx) const
 
void stop ()
 
bool process (__attribute__((unused)) const ActionSetMsg &msg)
 
bool process (__attribute__((unused)) const ActionCommandMsg &msg)
 
bool process (__attribute__((unused)) const RemoteEventMsg &msg)
 
bool process (__attribute__((unused)) const SensorEventMsg &msg)
 
void patchStatus (__attribute__((unused)) Message &msg)
 
void configChanged ()
 
- Public Member Functions inherited from as::SwitchStateMachine
bool changed () const
 
void changed (bool c)
 
void setup (__attribute__((unused)) BaseList l1)
 
virtual void switchState (__attribute__((unused)) uint8_t oldstate, __attribute__((unused)) uint8_t newstate, __attribute__((unused)) uint32_t delay)
 
void jumpToTarget (const SwitchPeerList &lst)
 
void toggleState ()
 
uint8_t getNextState ()
 
uint8_t getJumpTarget (uint8_t stat, const SwitchPeerList &lst) const
 
uint8_t getConditionForState (uint8_t stat, const SwitchPeerList &lst) const
 
uint32_t getDelayForState (uint8_t stat, const SwitchPeerList &lst) const
 
uint32_t getDefaultDelay (uint8_t stat) const
 
bool delayActive () const
 
bool set (uint8_t value, __attribute__((unused)) uint16_t ramp, uint16_t delay)
 
void remote (const SwitchPeerList &lst, uint8_t counter)
 
void sensor (const SwitchPeerList &lst, uint8_t counter, uint8_t value)
 
void stop ()
 
void status (uint8_t stat, uint16_t delay)
 
uint8_t status () const
 
uint8_t flags () const
 

Protected Types

typedef ActorChannel< HalType, SwitchList1, SwitchList3, PeerCount, List0Type, SwitchStateMachineBaseChannel
 

Protected Attributes

uint8_t lowact
 
uint8_t pin
 
- Protected Attributes inherited from as::SwitchStateMachine
uint8_t state: 4
 
bool change: 1
 
StateAlarm alarm
 

Additional Inherited Members

- Public Types inherited from as::ActorChannel< HalType, SwitchList1, SwitchList3, PeerCount, List0Type, SwitchStateMachine >
typedef Channel< HalType, SwitchList1, SwitchList3, EmptyList, PeerCount, List0Type, EmptyListBaseChannel
 
- Public Types inherited from as::Channel< HalType, SwitchList1, SwitchList3, EmptyList, PeerCount, List0Type, EmptyList >
typedef SwitchList1 List1
 
typedef EmptyList List2
 
typedef SwitchList3 List3
 
typedef EmptyList List4
 
typedef Device< HalType, List0Type > DeviceType
 
- Static Public Member Functions inherited from as::Channel< HalType, SwitchList1, SwitchList3, EmptyList, PeerCount, List0Type, EmptyList >
static bool hasList3 ()
 
static bool hasList4 ()
 
- Public Attributes inherited from as::ActorChannel< HalType, SwitchList1, SwitchList3, PeerCount, List0Type, SwitchStateMachine >
uint8_t lastmsgcnt
 
- Protected Member Functions inherited from as::Channel< HalType, SwitchList1, SwitchList3, EmptyList, PeerCount, List0Type, EmptyList >
uint16_t peerAddress (uint8_t pidx) const
 

Detailed Description

template<class HalType, int PeerCount, class List0Type, class IODriver = ArduinoPins>
class as::SwitchChannel< HalType, PeerCount, List0Type, IODriver >

Definition at line 326 of file Switch.h.