> For the complete documentation index, see [llms.txt](https://trillbit.gitbook.io/trillbit-sdk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://trillbit.gitbook.io/trillbit-sdk/embedded-linux/trill-sdk-for-embedded-linux/methods-and-callbacks/callbacks.md).

# Callbacks

The following function is called every instance of a successful decode.&#x20;

1. <mark style="color:blue;">**trill\_data\_link\_cb\_t :**</mark> \
   Function for datalink callback eventeg- (*trill\_data\_link\_cb\_t)(const trill\_data\_link\_event\_params\_t* params);
2. *<mark style="color:blue;">**trill\_data\_link\_event\_params\_t**</mark>* <mark style="color:blue;">:</mark> \
   This is a Data Link layer callback parameters containing the following:&#x20;
   1. **event :**&#x45;vent code. Refer to trill\_data\_link\_event\_t&#x20;
   2. **payload:** Payload data. Pointer should not be used after returning from this callback.
   3. **payload\_len:** Length of the payload in bytes.&#x20;
   4. **ssi:** Security scheme that was used for this packet.&#x20;
   5. **data\_cfg\_range:** Range Config of received data.&#x20;
   6. **user\_data:** User provided data.&#x20;
   7. **channel:** which channel the data was received from.&#x20;
