# Page

````
```c
esp_err_t i2c_master_bus_write_word(i2c_master_dev_handle_t dev_handle, uint8_t mem_address, uint16_t data)
{
    uint8_t i8_data[2];
    i8_data[0] = (uint8_t)((data >> 8) & 0x00FF);
    i8_data[1] = (uint8_t)(data & 0x00FF);
    uint8_t buffer[3] = {mem_address, i8_data[1], i8_data[0]};
    esp_err_t ret = i2c_master_transmit(dev_handle, buffer, 3, CONFIG_I2C_TIMEOUT);
    return ret;
}
```
````


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://documentation.whirlingbits.de/page.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
