Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Generic Read-Write descriptor for driver framework/SPI

Đang mở
#470 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
15/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Lĩnh vực
embedded-iot

Hướng nghiên cứu

The issue is a design sketch for a generic SPI transfer API: a transceivev function taking a slice of Transaction structs with input, output, offsets, min_len and pad fields, plus a length helper. It names no existing file or test. Settling the shape of the API with maintainers comes before any code, and the thread has been idle for about 290 days. Done would mean an agreed design and a follow-up issue or proposal, not a patch.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

driver framework

Just dumping this so it isn't lost in the Discord:

An idea we could use for an abstract SPI transfer system:

fn transceivev(actions: []const Transaction) !usize;

const Transaction = struct {
  /// buffer to receive
  input: []u8 = &.{},
  /// index of first received byte
  input_offset: usize = 0,
  /// buffer to send
  output: []const u8 = &.{},
  /// index of first sent byte
  output_offset: usize = 0,
  /// transceive at least this amount of items
  min_len: usize = 0,
  /// output when total len bigger than output.len
  pad: u8 = 0x00,

  pub fn length(t: @This()) usize {
    return @max(
      t.min_length,
      t.input_offset + t.input.len,
      t.output_offset + t.output.len,
    );
  }
};
Ngôn ngữ chính
Zig
Star
2.3k
Fork
198
Merge trung bình
1 ngày 8 giờ
Pull request đã merge (30 ngày)
37

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của ZigEmbeddedGroup/microzig

Tất cả issue của ZigEmbeddedGroup/microzig

Issue tương tự

Thêm issue về Embedded & IoT

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.