cfranz Posted February 25, 2013 Share Posted February 25, 2013 Was ist der Unterschied zwischen io16_set_port(IO16 *io16, char port, uint8_t value_mask) und io16_set_selected_values(IO16 *io16, char port, uint8_t selection_mask, uint8_t value_mask) ? Ist set_port das gleiche wie set_selected mit einer selection mask 0b11111111? Wenn ja, müsste es im Kommentar der header doku anstelle von /* The bitmask is 4 bit long, nicht heissen: *8* bit? <kratzt sich am Kopf> Jedenfalls bei allem was ich herumexperimentiere sieht das so aus... Quote Link to comment Share on other sites More sharing options...
borg Posted February 25, 2013 Share Posted February 25, 2013 Ups. Das wurde bestimmt von der IO-4 Dokumentation kopiert und nicht korrekt angepasst . 8 Bit ist korrekt. Quote Link to comment Share on other sites More sharing options...
cfranz Posted February 26, 2013 Author Share Posted February 26, 2013 Sorry, wenn ich noch mal auf meine Frage zurückkomme. Ich möchte bei meinem IO16 das pin 7 bank A auf FALSE setzten (eine LED ist angeschlossen, die zeigt, dass es zur zeit High ist). Mit char port = 'a'; uint8_t mask = 0x80; uint8_t value = 0x00; io16_set_selected_values(&theIO16, port, mask, value); sollte meiner meinung nach pin 7 auf 0 gesetzt werden. Geht aber nicht. werden geräteseitig eventuell doch die oberen 4 bit gelöscht? Mit der älteren proc char port = 'a'; uint8_t mask = 0x7f; io16_set_port(&theIO16, port, mask); kann ich problemlos das bit löschen. Für mich kein echtes Problem, aber ich habe mir vorhin fast mein letztes Haar deswegen ausgerissen. Quote Link to comment Share on other sites More sharing options...
borg Posted February 26, 2013 Share Posted February 26, 2013 *kopfkratz* Sieht korrekt aus. Muss ich mir morgen früh angucken, vielleicht ist da wirklich ein Bug in der Firmware. Quote Link to comment Share on other sites More sharing options...
photron Posted March 1, 2013 Share Posted March 1, 2013 Ja, ein Bug in der Firmware. Ist in Version 2.0.1 korrigiert. Quote Link to comment Share on other sites More sharing options...
cfranz Posted March 2, 2013 Author Share Posted March 2, 2013 Jetzt klappt's!!! Danke, -ch Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.