Hi!
I've been reading the available information about Deep Sleep and its HCILL mode. However, I still home some doubts on how to implement it correctly on the host MCU, which is an STM32L486.
The wiki description at http://processors.wiki.ti.com/index.php/CC256x_eHCILL_Low_Power_Protocol states that Deep Sleep is initiated by the CC2564B when it sends the HCILL_GO_TO_SLEEP_IND OpCode to the MCU. The MCU then must then raise RTS and the send the corresponding HCILL_GO_TO_SLEEP_ACK message.
My question here is how should I capture the HCILL_GO_TO_SLEEP_IND OpCode? Does it trigger some higher level HCI event? If so, which event does it trigger?
If not, does it mean I must modify the HCI IRQ handler to detect this OpCode and act accordingly? If so, how do I prevent from confusing a byte belonging to some other HCI message with the HCILL_GO_TO_SLEEP_IND OpCode, without parsing every valid HCI OpCode and without implementing one more state machine?
Thanks!
Nico.