iforce2d Chris / Mbed 2 deprecated ubxDistanceMeter

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers u8g_com_null.c Source File

u8g_com_null.c

00001 /*
00002 
00003   u8g_com_null.c
00004  
00005   communication null device
00006 
00007   Universal 8bit Graphics Library
00008  
00009   Copyright (c) 2011, olikraus@gmail.com
00010   All rights reserved.
00011 
00012   Redistribution and use in source and binary forms, with or without modification,
00013   are permitted provided that the following conditions are met:
00014 
00015   * Redistributions of source code must retain the above copyright notice, this list
00016     of conditions and the following disclaimer.
00017    
00018   * Redistributions in binary form must reproduce the above copyright notice, this
00019     list of conditions and the following disclaimer in the documentation and/or other
00020     materials provided with the distribution.
00021 
00022   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
00023   CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
00024   INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
00025   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
00026   DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
00027   CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
00028   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
00029   NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
00030   LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
00031   CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
00032   STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
00033   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
00034   ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  
00035  
00036  
00037 */
00038 
00039 #include "u8g.h"
00040 
00041 uint8_t u8g_com_null_fn(u8g_t *u8g, uint8_t msg, uint8_t arg_val, void *arg_ptr)
00042 {
00043   switch(msg)
00044   {
00045     case U8G_COM_MSG_INIT:
00046       break;
00047     case U8G_COM_MSG_STOP:
00048       break;
00049 
00050    
00051     case U8G_COM_MSG_CHIP_SELECT:
00052       /* arg_val contains the chip number, which should be enabled */
00053       break;
00054 
00055 
00056     case U8G_COM_MSG_WRITE_BYTE:
00057       break;
00058     case U8G_COM_MSG_WRITE_SEQ:
00059       break;
00060   }
00061   return 1;
00062 }
00063 
00064