33 #ifndef EO_REMOTE_MANAGER_H_ 34 #define EO_REMOTE_MANAGER_H_ 174 START_SESSION_OK = 0x00,
239 bool shallBeRepeated;
244 return gateway->
Send(reManMessage, shallBeRepeated, keyToUse);
274 return shallBeRepeated;
281 shallBeRepeated = repeat;
291 eoReturn UnLock(
const uint32_t securityCode,
const uint32_t destinationID);
300 eoReturn Lock(
const uint32_t securityCode,
const uint32_t destinationID);
303 eoReturn Start(
const uint32_t destinationID);
306 eoReturn Close(
const uint32_t destinationID);
316 eoReturn SetCode(
const uint32_t securityCode,
const uint32_t destinationID);
408 eoReturn RemoteFlashWrite(
const uint32_t destinationID,
const uint16_t &memoryAddress,
const uint16_t numOfBytes,
const uint8_t data[]);
418 eoReturn RemoteFlashRead(
const uint32_t destinationID,
const uint16_t &memoryAddress,
const uint16_t numOfBytes);
463 eoReturn RemoteSmartAddMailbox(
const uint32_t destinationID,
const uint8_t mailboxIndex,
const uint32_t sensorID,
const uint32_t postmasterID);
477 eoReturn RemoteSmartLearnIn(
const uint32_t destinationID,
const uint8_t learnCount,
const uint32_t sensorID,
const uint32_t controllerID);
485 eoReturn RemoteSmartLearnOut(
const uint32_t destinationID,
const uint8_t learnCount,
const uint32_t sensorID,
const uint32_t controllerID);
489 #endif // !defined(EA_4BFBF49B_3520_48f7_BACB_B62331BA4509__INCLUDED_) Unlock.
Definition: eoRemoteManager.h:64
eoReturn Lock(const uint32_t securityCode, const uint32_t destinationID)
eoReturn RemoteSmartDeleteMailbox(const uint32_t destinationID, const uint8_t mailboxIndex)
uint16_t functionNum
Function number.
Definition: eoRemoteManager.h:150
Query ID.
Definition: eoRemoteManager.h:68
SmartACK start advanced learn mode.
Definition: eoRemoteManager.h:52
Query ID answer.
Definition: eoRemoteManager.h:72
void SetShallBeRepeated(bool repeat)
Definition: eoRemoteManager.h:279
bool GetShallBeRepeated() const
Definition: eoRemoteManager.h:272
uint8_t lastFuncRet
Last function return code.
Definition: eoRemoteManager.h:192
uint8_t func
EEP Function - 6 bit.
Definition: eoRemoteManager.h:136
SmartACK write.
Definition: eoRemoteManager.h:110
Learned sensors response structure.
Definition: eoRemoteManager.h:221
Ext Query Id Answer.
Definition: eoRemoteManager.h:74
eoReturn RemoteSmartLearnOut(const uint32_t destinationID, const uint8_t learnCount, const uint32_t sensorID, const uint32_t controllerID)
uint32_t controllerID
Device ID of the controller.
Definition: eoRemoteManager.h:226
eoReturn RemoteSmartAddMailbox(const uint32_t destinationID, const uint8_t mailboxIndex, const uint32_t sensorID, const uint32_t postmasterID)
uint8_t func
EEP Function.
Definition: eoRemoteManager.h:164
eoReturn RemoteSmartReadMailboxSettings(const uint32_t destinationID)
SmartACK read mailbox answer.
Definition: eoRemoteManager.h:106
SmartACK stop learn mode.
Definition: eoRemoteManager.h:54
eoReturn QueryID(const QUERY_ID &msg)
eoReturn SetCode(const uint32_t securityCode, const uint32_t destinationID)
eoReturn QueryFunction(const uint32_t destinationID)
Query status.
Definition: eoRemoteManager.h:86
uint16_t flashAddress
SmartAck flash address where the settings are stored.
Definition: eoRemoteManager.h:212
Flash read response structure.
Definition: eoRemoteManager.h:199
uint8_t type
EEP Type - 7 bit.
Definition: eoRemoteManager.h:124
uint8_t data
Read data.
Definition: eoRemoteManager.h:202
Next channel.
Definition: eoRemoteManager.h:46
eoReturn ParseRemoteFlashReadAnswer(FLASH_READ_RESPONSE *response, uint16_t *dataCount, uint8_t maxDataCount)
eoReturn Ping(const uint32_t destinationID)
Query ID.
Definition: eoRemoteManager.h:70
Start a session with a secure ReMan device.
Definition: eoRemoteManager.h:90
eoReturn ParseQueryFunctionAnswer(QUERY_FUNCTION_RESPONSE *response, uint8_t maxIDCount, uint8_t &IDCount)
Remote flash read answer.
Definition: eoRemoteManager.h:102
Remote flash read.
Definition: eoRemoteManager.h:100
uint8_t rorg
EEP RORG - 8 bit.
Definition: eoRemoteManager.h:120
Query function answer.
Definition: eoRemoteManager.h:84
bool codeSetFlag
Code set flag.
Definition: eoRemoteManager.h:186
SmartACK read.
Definition: eoRemoteManager.h:104
eoReturn UnLock(const uint32_t securityCode, const uint32_t destinationID)
Query function response structure.
Definition: eoRemoteManager.h:147
Mailbox settings response structure.
Definition: eoRemoteManager.h:209
Start learning.
Definition: eoRemoteManager.h:44
eoReturn ParsePingAnswer(PING_RESPONSE &response)
Ping.
Definition: eoRemoteManager.h:78
SmartACK start simple learn mode.
Definition: eoRemoteManager.h:50
Query ID structure.
Definition: eoRemoteManager.h:117
eoRemoteManager(eoGateway *gateway)
uint8_t learnedCount
Number of learned in devices.
Definition: eoRemoteManager.h:228
eoReturn QueryStatus(const uint32_t destinationID)
eoReturn ParseQueryIDAnswer(QUERY_ID_RESPONSE &response)
FN_CODE
Function codes.
Definition: eoRemoteManager.h:61
void SetKeyToUse(uint8_t key)
Definition: eoRemoteManager.h:265
eoReturn ParseRemoteSmartReadMailboxSettingsAnswer(MAILBOX_SETTINGS_RESPONSE &response)
eoReturn RemoteSmartReadLearnedSensors(const uint32_t destinationID)
eoReturn
contains all the return values from different functions
Definition: eoApiDef.h:40
uint8_t lastSEQ
Last SEQ.
Definition: eoRemoteManager.h:188
REMOTE_TYPE
Remote learn types.
Definition: eoRemoteManager.h:41
uint16_t lastFunc
Last function code.
Definition: eoRemoteManager.h:190
EnOcean Gateway class, for handling a gateway Module.
Definition: eoGateway.h:139
eoReturn RemoteLearnIn(const uint32_t destinationID, REMOTE_TYPE learnFlag)
Ping answer.
Definition: eoRemoteManager.h:80
eoReturn ParseRemoteSmartReadLearnedSensors(LEARNED_SENSOR_RESPONSE *response, uint8_t *learnedCount, uint8_t maxLearnedCount)
Action.
Definition: eoRemoteManager.h:76
uint8_t type
EEP Type - 7 bit.
Definition: eoRemoteManager.h:138
virtual eoReturn Send(const eoPacket &p)
Query status answer.
Definition: eoRemoteManager.h:88
SmartACK read learned sensor answer.
Definition: eoRemoteManager.h:108
uint32_t sensorID
Device ID of the sensor.
Definition: eoRemoteManager.h:224
eoReturn ParseQueryStatusAnswer(QUERY_STATUS_RESPONSE &response)
eoReturn RemoteSmartLearnIn(const uint32_t destinationID, const uint8_t learnCount, const uint32_t sensorID, const uint32_t controllerID)
uint8_t rorg
EEP RORG.
Definition: eoRemoteManager.h:162
eoReturn Action(const uint32_t destinationID)
bool GetKeyToUse() const
Definition: eoRemoteManager.h:258
Ping response structure.
Definition: eoRemoteManager.h:159
Remote flash write.
Definition: eoRemoteManager.h:98
Stop learning.
Definition: eoRemoteManager.h:48
START_RESPONSE
Definition: eoRemoteManager.h:172
uint8_t func
EEP Function - 6 bit.
Definition: eoRemoteManager.h:122
Remote Manager interface class.
Definition: eoRemoteManager.h:234
Start a session with a secure ReMan device.
Definition: eoRemoteManager.h:94
Session is already controller by another controller.
Definition: eoRemoteManager.h:176
Query status response structure.
Definition: eoRemoteManager.h:183
uint8_t rorg
EEP RORG - 8 bit.
Definition: eoRemoteManager.h:134
Definition: eoReManMessage.h:43
Query function.
Definition: eoRemoteManager.h:82
int8_t rssi
RSSI of the pinged device.
Definition: eoRemoteManager.h:168
uint8_t locked
Locked by other manager - bool.
Definition: eoRemoteManager.h:140
uint16_t mailboxCount
Number of mailboxes.
Definition: eoRemoteManager.h:214
uint8_t type
EEP Type.
Definition: eoRemoteManager.h:166
Reply to the start command.
Definition: eoRemoteManager.h:92
uint16_t manufaturerID
Manufacturer ID.
Definition: eoRemoteManager.h:152
Lock.
Definition: eoRemoteManager.h:66
eoReturn RemoteFlashWrite(const uint32_t destinationID, const uint16_t &memoryAddress, const uint16_t numOfBytes, const uint8_t data[])
eoReturn RemoteFlashRead(const uint32_t destinationID, const uint16_t &memoryAddress, const uint16_t numOfBytes)
Query ID response structure.
Definition: eoRemoteManager.h:131
Remote learn in.
Definition: eoRemoteManager.h:96