Lines Matching full:offset
3 * @brief Bluetooth Volume Offset Control Service (VOCS) APIs.
16 * @brief Volume Offset Control Service (VOCS)
18 * @defgroup bt_vocs Volume Offset Control Service (VOCS)
26 * The Volume Offset Control Service is a secondary service, and as such should not be used own its
30 * Note that the API abstracts away the change counter in the volume offset control state and will
45 * @name Volume Offset Control Service Error codes
50 * Offset State characteristic.
60 * @name Volume Offset Control Service offset limits
63 /** Minimum offset value */
65 /** Maximum offset value */
69 /** @brief Opaque Volume Offset Control Service instance. */
72 /** @brief Structure for registering a Volume Offset Control Service instance. */
80 /** Initial volume offset (-255 to 255) */
81 int16_t offset; member
93 /** @brief Structure for discovering a Volume Offset Control Service instance. */
110 * @brief Get a free service instance of Volume Offset Control Service from the pool.
112 * @return Volume Offset Control Service instance in case of success or NULL in case of error.
121 * @param vocs Volume Offset Control Service instance.
141 * @brief Register the Volume Offset Control Service instance.
143 * @param vocs Volume Offset Control Service instance.
144 * @param param Volume Offset Control Service register parameters.
152 * @brief Callback function for the offset state.
160 * @param offset The offset value.
162 typedef void (*bt_vocs_state_cb)(struct bt_vocs *inst, int err, int16_t offset);
165 * @brief Callback function for setting offset.
205 * includes the Volume Control Offset Service client, and should thus not be
216 * @brief Struct to hold the Volume Offset Control Service callbacks
222 /** The offset state has changed */
237 * The set offset procedure has completed
246 * @brief Read the Volume Offset Control Service offset state.
250 * @param inst Pointer to the Volume Offset Control Service instance.
257 * @brief Set the Volume Offset Control Service offset state.
259 * @param inst Pointer to the Volume Offset Control Service instance.
260 * @param offset The offset to set (-255 to 255).
264 int bt_vocs_state_set(struct bt_vocs *inst, int16_t offset);
267 * @brief Read the Volume Offset Control Service location.
271 * @param inst Pointer to the Volume Offset Control Service instance.
278 * @brief Set the Volume Offset Control Service location.
280 * @param inst Pointer to the Volume Offset Control Service instance.
288 * @brief Read the Volume Offset Control Service output description.
292 * @param inst Pointer to the Volume Offset Control Service instance.
299 * @brief Set the Volume Offset Control Service description.
301 * @param inst Pointer to the Volume Offset Control Service instance.
309 * @brief Registers the callbacks for the Volume Offset Control Service client.
311 * @param inst Pointer to the Volume Offset Control Service client instance.
317 * @brief Returns a pointer to a Volume Offset Control Service client instance.
324 * @brief Discover a Volume Offset Control Service.
326 * Attempts to discover a Volume Offset Control Service on a server given the @p param.
328 * @param conn Connection to the peer with the Volume Offset Control Service.
329 * @param inst Pointer to the Volume Offset Control Service client instance.