| 1 | = SrlApi = |
| 2 | |
| 3 | Srl API is your gateway to software resources. |
| 4 | |
| 5 | == Log API == |
| 6 | |
| 7 | Log API let you define message levels. Levels allow you to let your debug code in the source, and only compile it when needed. |
| 8 | |
| 9 | * {{{srl_log(level, "message")}}} prints a message |
| 10 | * {{{srl_log_printf(level, "message_with_format", arguments)}}} prints a printf-like message |
| 11 | |
| 12 | == Mwmr fifos API == |
| 13 | |
| 14 | * {{{srl_mwmr_read(fifo, buffer, size)}}} reads {{{size}}} 32-bit words from fifo to buffer. {{{size}}} must be a multiple of fifo width. |
| 15 | * {{{srl_mwmr_write(fifo, buffer, size)}}} writes {{{size}}} 32-bit words from buffer to fifo. {{{size}}} must be a multiple of fifo width. |