Skip to content

Set/Clear Bit in register. (without touching any other bits) #248

Answered by davidrapan
murik85 asked this question in Q&A
Discussion options

You must be logged in to vote

feat: Switch platform - bitwise operations:

      - name: Clear records
        platform: switch
        rule: 1
        registers: [0x0210, 0x020F]
        value:
          bit: 5

Edit: OR if the register has "auto-reset capability" or/and you want to use simple button ...

feat: Button platform - bitwise operations:

      - name: Clear records
        platform: button
        rule: 1
        registers: [0x0210, 0x020F]
        value:
          bit: 5

Edit2: feat: Add support for writing of values > 16b will be proly needed too.

Edit3: refactor: Moved bit prop in Button & Switch platforms is needed too.

Edit4: fix: Button & Switch platforms typo

Edit5: fix: Bidirectional writing across …

Replies: 3 comments 29 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
25 replies
@murik85
Comment options

@davidrapan
Comment options

@davidrapan
Comment options

@murik85
Comment options

@davidrapan
Comment options

Answer selected by davidrapan
Comment options

You must be logged in to vote
4 replies
@murik85
Comment options

@davidrapan
Comment options

@murik85
Comment options

@davidrapan
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants