An initial port to the FRDM-K46Z based on the the following: https://developer.mbed.org/users/okini3939/notebook/dmx512/
Fork of DMX by
DMX Class Reference
DMX512 class (sender/client) More...
#include <DMX.h>
Public Member Functions | |
DMX (PinName p_tx, PinName p_rx) | |
init DMX class | |
void | put (int addr, int data) |
Send the data. | |
void | put (unsigned char *buf, int addr=0, int len=DMX_SIZE) |
Send the data. | |
int | get (int addr) |
Send the data. | |
void | get (unsigned char *buf, int addr=0, int len=DMX_SIZE) |
Send the data. | |
void | start () |
Start DMX send operation. | |
void | stop () |
Stop DMX send operation. | |
void | clear () |
Clear DMX data. | |
int | get_mode_rx () |
Get the receiver Mode. | |
Protected Member Functions | |
void | int_timer () |
void | int_rx () |
Detailed Description
DMX512 class (sender/client)
Definition at line 40 of file DMX.h.
Constructor & Destructor Documentation
DMX | ( | PinName | p_tx, |
PinName | p_rx | ||
) |
Member Function Documentation
void get | ( | unsigned char * | buf, |
int | addr = 0 , |
||
int | len = DMX_SIZE |
||
) |
int get | ( | int | addr ) |
void int_rx | ( | ) | [protected] |
void int_timer | ( | ) | [protected] |
Chapter 31.2 of the Freescale KE02 Sub-Famely Reference UARTx_C2 page 553 enable the transmitter and reciever Sending a break we write a one, then write a zero..... This sets send break bit
Bit 6 in the LCR enables the break signal.....
This sets the break charcter to zero to send the break.
Check the TDRE (Transmit Data Register Empty) flag... page 555 The data is placed in D on the Freescale
Bit 5 of the LSR indicates the THR (Transmit Holding Register) is empty
void put | ( | unsigned char * | buf, |
int | addr = 0 , |
||
int | len = DMX_SIZE |
||
) |
void put | ( | int | addr, |
int | data | ||
) |
Generated on Sun Jul 24 2022 00:08:43 by 1.7.2