ZakKemble / libmcp2221

MCP2221 HID Library
https://blog.zakkemble.net/mcp2221-hid-library/
GNU General Public License v3.0
54 stars 14 forks source link

Fix Clock Duty Cycle #1

Closed MDenzinger closed 7 years ago

MDenzinger commented 7 years ago

http://ww1.microchip.com/downloads/en/DeviceDoc/20005292B.pdf

bit 4-3 CLKDC<1:0>: Clock-Out Duty-Cycle bit 2-0 CLKDIV<2:0>: Clock-Out Divider Output (REGISTER 1-2 Page 8) (TABLE 3-36 Page 49)

are merged into Bit 4-0: Clock Output divider value (TABLE 3-5 Page 27) (TABLE 3-12 Page 33) (TABLE 3-39 Page 54) "(Bits 4-3 for duty cycle and bits 2-0 for the clock divider.)"

Changes: libmcp2221/libmcp2221.h libmcp2221/libmcp2221.c lib/libmcp2221.h lib/unix/libmcp2221.a lib/unix/libmcp2221.so Missing compiled Windows lib.

Thanks for this Library! Works great