Jump to content
View in the app

A better way to browse. Learn more.

Tinkerunity

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Geschrieben

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...

Geschrieben
  • Autor

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.

 

Geschrieben
  • Autor

Jetzt klappt's!!!

 

Danke,

-ch

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Gast
Reply to this topic...

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.