Nick

Results 591 comments of Nick

* Use `.cc` over `.cpp` * `WriteRegister8` cmd has no semicolon * Add `#include "BMP180.h"` at top * Address, Initiator -> `pw::i2c::...` * Result -> `pw::Result` and Status -> `pw::Status`...

BUILD.gn (see also [sample](https://pigweed.googlesource.com/pigweed/sample_project/+/refs/heads/main/source/pw_board_led_teensy/BUILD.gn)) ```gn # ... import("//build_overrides/pigweed.gni") import("$dir_pw_build/target_types.gni") import("$dir_pw_chrono/backend.gni") import("$dir_pw_docgen/docs.gni") import("$dir_pw_unit_test/test.gni") pw_source_set("bmp180") { public = [ "BMP180.h" ] sources = [ "BMP180.cc" ] deps = [ "$dir_pw_bytes", "$dir_pw_chrono:system_clock", "$dir_pw_i2c:address",...

Tasks for this: - Create a '#/fields/' getter - Add a when to do a dict lookup based on value from variable `for` ```yaml - programmableGain: '#/fields/ProgrammableGain' - programmableGain: when:...

This is a really great tool. Thanks for sharing it! Setting up functions are definitely a more convoluted part of the spec in general, and extensions are even more broad...

Handling edge cases is very tricky, which is an area where defining functions can help massage the data for both CAN and I2C. A visual editor for functions could be...

I think a simple approach is to define one or multiple example values from an expected sensor (maybe with additional semantic information) ```yaml registerA: example: 0x43 # Or several possible...

In some microcontroller architectures they'll cache register values in a memory map, so repeated queries (especially for read-only) will read from a memory structure rather than call directly. While that...

I suppose there are two groups for whom emulated devices may be useful: - Driver spec engineers who may want unit testing on their functions as a double-check - Product...

A subset of Python could be more approachable, as long as it doesn't delve too deeply into Python syntax. > Can registers be read on a middle of a operation?...

It depends on how you want to define it. You could introduce some special syntax like: `var a