sipo.c File Reference

SIPO Module. More...

#include "sipo.h"
#include "hw/hw_sipo.h"
#include <cfg/compiler.h>
#include <cfg/log.h>
#include <kern/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.

Version:
Id
sipo.c 2701 2009-06-03 14:10:29Z asterix

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.