Lines Matching full:buf
53 uint8_t buf[4] = {NPM6001_WDARMEDVALUE, 1U, NPM6001_WDARMEDSTROBE, 1U}; in wdt_npm6001_disable() local
55 return i2c_write_dt(&config->bus, buf, sizeof(buf)); in wdt_npm6001_disable()
63 uint8_t buf[2]; in wdt_npm6001_install_timeout() local
80 buf[0] = NPM6001_WDPWRUPVALUE; in wdt_npm6001_install_timeout()
81 buf[1] = NPM6001_WDPWRUPVALUE_OSC_ENABLE | in wdt_npm6001_install_timeout()
84 ret = i2c_write_dt(&config->bus, buf, sizeof(buf)); in wdt_npm6001_install_timeout()
89 buf[0] = NPM6001_WDPWRUPSTROBE; in wdt_npm6001_install_timeout()
90 buf[1] = 1U; in wdt_npm6001_install_timeout()
91 ret = i2c_write_dt(&config->bus, buf, sizeof(buf)); in wdt_npm6001_install_timeout()
97 buf[0] = NPM6001_WDTRIGGERVALUE0; in wdt_npm6001_install_timeout()
98 buf[1] = (uint8_t)window; in wdt_npm6001_install_timeout()
99 ret = i2c_write_dt(&config->bus, buf, sizeof(buf)); in wdt_npm6001_install_timeout()
104 buf[0] = NPM6001_WDTRIGGERVALUE1; in wdt_npm6001_install_timeout()
105 buf[1] = (uint8_t)(window >> 8U); in wdt_npm6001_install_timeout()
106 ret = i2c_write_dt(&config->bus, buf, sizeof(buf)); in wdt_npm6001_install_timeout()
111 buf[0] = NPM6001_WDTRIGGERVALUE2; in wdt_npm6001_install_timeout()
112 buf[1] = (uint8_t)(window >> 16U); in wdt_npm6001_install_timeout()
113 ret = i2c_write_dt(&config->bus, buf, sizeof(buf)); in wdt_npm6001_install_timeout()
118 buf[0] = NPM6001_WDDATASTROBE; in wdt_npm6001_install_timeout()
119 buf[1] = 1U; in wdt_npm6001_install_timeout()
120 ret = i2c_write_dt(&config->bus, buf, sizeof(buf)); in wdt_npm6001_install_timeout()
126 buf[0] = NPM6001_WDARMEDVALUE; in wdt_npm6001_install_timeout()
127 buf[1] = 1U; in wdt_npm6001_install_timeout()
128 ret = i2c_write_dt(&config->bus, buf, sizeof(buf)); in wdt_npm6001_install_timeout()
133 buf[0] = NPM6001_WDARMEDSTROBE; in wdt_npm6001_install_timeout()
134 buf[1] = 1U; in wdt_npm6001_install_timeout()
135 ret = i2c_write_dt(&config->bus, buf, sizeof(buf)); in wdt_npm6001_install_timeout()
140 buf[0] = NPM6001_WDKICK; in wdt_npm6001_install_timeout()
141 buf[1] = 1U; in wdt_npm6001_install_timeout()
142 ret = i2c_write_dt(&config->bus, buf, sizeof(buf)); in wdt_npm6001_install_timeout()
153 uint8_t buf[2] = {NPM6001_WDKICK, 1U}; in wdt_npm6001_feed() local
157 return i2c_write_dt(&config->bus, buf, sizeof(buf)); in wdt_npm6001_feed()