BeRTOS
Functions
sipo.c File Reference

SIPO Module. More...

#include "sipo.h"
#include "hw/hw_sipo.h"
#include <cfg/compiler.h>
#include <cfg/log.h>
#include <io/kfile.h>
#include <string.h>

Go to the source code of this file.

Functions

void sipo_putchar (uint8_t c, uint8_t bit_order, uint8_t clock_pol)
 Write a char in sipo shift register.
static size_t sipo_write (struct KFile *_fd, const void *_buf, size_t size)
 Write a buffer into the sipo register and, when finished, give a load pulse.
void sipo_init (Sipo *fd)
 Initialize the SIPO.

Detailed Description

SIPO Module.

The SIPO module transforms a serial input in a parallel output. Please check hw_sipo.h file to customize hardware related parameters.

Author:
Andrea Grandi <andrea@develer.com>
Daniele Basile <asterix@develer.com>

Definition in file sipo.c.